Class JBBPMapperException

All Implemented Interfaces:
Serializable

public class JBBPMapperException extends JBBPException
The Exception describes an error during processing of mapping of bin fields to class fields.
Since:
1.0
See Also:
  • Constructor Details

    • JBBPMapperException

      public JBBPMapperException(String message, JBBPAbstractField field, Class<?> mappingClass, Field mappingClassField, Throwable cause)
      The Constructor.
      Parameters:
      message - the text message describes the exception
      field - the JBBP field which processing generates the exception
      mappingClass - the class which mapping generates the exception
      mappingClassField - the class field which mapping is wrong
      cause - the root cause for the exception, it can be null
  • Method Details

    • getField

      public JBBPAbstractField getField()
      Get the JBBP field related to the exception.
      Returns:
      the JBBP filed which mapping generates the exception, it can be null
    • getMappingClass

      public Class<?> getMappingClass()
      Get a class which mapping generates the exception.
      Returns:
      the class which mapping generates the exception, it can be null
    • getMappingClassField

      public Field getMappingClassField()
      Get a class field related to the exception.
      Returns:
      a class field which was processing as exception thrown, it can be null
    • toString

      public String toString()
      Overrides:
      toString in class Throwable