Package org.jsonschema2pojo.exception
Class ClassAlreadyExistsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.jsonschema2pojo.exception.ClassAlreadyExistsException
- All Implemented Interfaces:
Serializable
Thrown to indicate that an attempt to create a new class failed, because a
class of the same name already exists (either on the classpath or in the
current map of types to be generated.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionClassAlreadyExistsException(com.sun.codemodel.JType existingClass) Creates a new exception where the given existing class was found to conflict with an attempt to create a new class. -
Method Summary
Modifier and TypeMethodDescriptioncom.sun.codemodel.JTypeGets the corresponding existing class that caused this exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ClassAlreadyExistsException
public ClassAlreadyExistsException(com.sun.codemodel.JType existingClass) Creates a new exception where the given existing class was found to conflict with an attempt to create a new class.- Parameters:
existingClass- the class already present on the classpath (or in the map of classes to be generated) when attempt to create a new class was made.
-
-
Method Details
-
getExistingClass
public com.sun.codemodel.JType getExistingClass()Gets the corresponding existing class that caused this exception.- Returns:
- the class already present on the classpath (or in the map of classes to be generated) when attempt to create a new class was made.
-