Package com.igormaznitsa.jbbp.exceptions
Class JBBPMapperException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.igormaznitsa.jbbp.exceptions.JBBPException
com.igormaznitsa.jbbp.exceptions.JBBPMapperException
- All Implemented Interfaces:
Serializable
The Exception describes an error during processing of mapping of bin fields to class fields.
- Since:
- 1.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJBBPMapperException(String message, JBBPAbstractField field, Class<?> mappingClass, Field mappingClassField, Throwable cause) The Constructor. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
JBBPMapperException
public JBBPMapperException(String message, JBBPAbstractField field, Class<?> mappingClass, Field mappingClassField, Throwable cause) The Constructor.- Parameters:
message- the text message describes the exceptionfield- the JBBP field which processing generates the exceptionmappingClass- the class which mapping generates the exceptionmappingClassField- the class field which mapping is wrongcause- the root cause for the exception, it can be null
-
-
Method Details
-
getField
Get the JBBP field related to the exception.- Returns:
- the JBBP filed which mapping generates the exception, it can be null
-
getMappingClass
Get a class which mapping generates the exception.- Returns:
- the class which mapping generates the exception, it can be null
-
getMappingClassField
Get a class field related to the exception.- Returns:
- a class field which was processing as exception thrown, it can be null
-
toString
-