Class InvalidMappingException

  • All Implemented Interfaces:
    java.io.Serializable

    public class InvalidMappingException
    extends java.lang.RuntimeException
    Thrown by Config.as(Type) when the determined Java class for a Pkl value cannot be found on the classpath.

    When this happens, the most likely explanation is that the generated code is not up-to-date.

    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      InvalidMappingException​(java.lang.String pklName, java.lang.String javaName, java.lang.Exception cause)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getJavaName()  
      java.lang.String getMessage()  
      java.lang.String getPklName()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • InvalidMappingException

        public InvalidMappingException​(java.lang.String pklName,
                                       java.lang.String javaName,
                                       java.lang.Exception cause)
    • Method Detail

      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable
      • getPklName

        public java.lang.String getPklName()
      • getJavaName

        public java.lang.String getJavaName()