Class ObjectCreationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.pgcodekeeper.core.exception.ObjectCreationException
All Implemented Interfaces:
Serializable

public class ObjectCreationException extends RuntimeException
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 Details

    • ObjectCreationException

      public ObjectCreationException()
      Constructs exception with null message and cause.
    • ObjectCreationException

      public ObjectCreationException(String message)
      Constructs exception with specified message.
      Parameters:
      message - the detail message
    • ObjectCreationException

      public ObjectCreationException(Throwable cause)
      Constructs exception with specified cause.
      Parameters:
      cause - the root cause exception
    • ObjectCreationException

      public ObjectCreationException(String message, Throwable cause)
      Constructs exception with specified message and cause.
      Parameters:
      message - the detail message
      cause - 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 message
      cause - the root cause exception
      enableSuppression - whether suppression is enabled
      writableStackTrace - whether stack trace is writable
    • ObjectCreationException

      public ObjectCreationException(IStatement st)
      Constructs exception for existing database statement.
      Parameters:
      st - the statement that already exists
    • ObjectCreationException

      public ObjectCreationException(IStatement st, IStatement parent)
      Constructs exception for existing database statement with parent context.
      Parameters:
      st - the statement that already exists
      parent - the parent statement context