Package org.pgcodekeeper.core.exception
Class MisplacedObjectException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.pgcodekeeper.core.exception.UnresolvedReferenceException
org.pgcodekeeper.core.exception.MisplacedObjectException
- All Implemented Interfaces:
Serializable
Exception indicating incorrect placement or reference to a database object.
Thrown when an object is referenced in a context where it doesn't belong.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMisplacedObjectException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, org.antlr.v4.runtime.Token errorToken) Constructs exception with full exception details.MisplacedObjectException(String format, org.antlr.v4.runtime.Token errToken) Constructs exception with formatted message.MisplacedObjectException(Throwable cause, org.antlr.v4.runtime.Token errorToken) Constructs exception with cause and error token location.MisplacedObjectException(org.antlr.v4.runtime.Token errorToken) Constructs exception with the error token location. -
Method Summary
Methods inherited from class org.pgcodekeeper.core.exception.UnresolvedReferenceException
getErrorTokenMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MisplacedObjectException
public MisplacedObjectException(org.antlr.v4.runtime.Token errorToken) Constructs exception with the error token location.- Parameters:
errorToken- the token where error occurred
-
MisplacedObjectException
Constructs exception with cause and error token location.- Parameters:
cause- the root cause exceptionerrorToken- the token where error occurred
-
MisplacedObjectException
public MisplacedObjectException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, org.antlr.v4.runtime.Token errorToken) Constructs exception with full exception details.- Parameters:
message- the detail messagecause- the root cause exceptionenableSuppression- whether suppression is enabledwritableStackTrace- whether stack trace is writableerrorToken- the token where error occurred
-
MisplacedObjectException
Constructs exception with formatted message.- Parameters:
format- the message format stringerrToken- the token where error occurred
-