Class ClassAlreadyExistsException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.jsonschema2pojo.exception.ClassAlreadyExistsException
All Implemented Interfaces:
Serializable

public class ClassAlreadyExistsException extends Exception
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 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.