Package org.pgcodekeeper.core.exception
Class ObjectCreationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.pgcodekeeper.core.exception.ObjectCreationException
- All Implemented Interfaces:
Serializable
Exception thrown when attempting to create a database object that already exists.
Used for cases when object creation fails due to naming conflicts.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs exception with null message and cause.ObjectCreationException(String message) Constructs exception with specified message.ObjectCreationException(String message, Throwable cause) Constructs exception with specified message and cause.ObjectCreationException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) Constructs exception with full exception details.ObjectCreationException(Throwable cause) Constructs exception with specified cause.Constructs exception for existing database statement.ObjectCreationException(IStatement st, IStatement parent) Constructs exception for existing database statement with parent context. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ObjectCreationException
public ObjectCreationException()Constructs exception with null message and cause. -
ObjectCreationException
Constructs exception with specified message.- Parameters:
message- the detail message
-
ObjectCreationException
Constructs exception with specified cause.- Parameters:
cause- the root cause exception
-
ObjectCreationException
Constructs exception with specified message and cause.- Parameters:
message- the detail messagecause- the root cause exception
-
ObjectCreationException
public ObjectCreationException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) Constructs exception with full exception details.- Parameters:
message- the detail messagecause- the root cause exceptionenableSuppression- whether suppression is enabledwritableStackTrace- whether stack trace is writable
-
ObjectCreationException
Constructs exception for existing database statement.- Parameters:
st- the statement that already exists
-
ObjectCreationException
Constructs exception for existing database statement with parent context.- Parameters:
st- the statement that already existsparent- the parent statement context
-