Package org.pgcodekeeper.core.exception
Class UnresolvedReferenceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.pgcodekeeper.core.exception.UnresolvedReferenceException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
MisplacedObjectException
Exception thrown when a database object reference cannot be resolved.
Indicates that a referenced object was not found in the database schema.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUnresolvedReferenceException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, org.antlr.v4.runtime.Token errorToken) Constructs exception with full exception details and error token location.UnresolvedReferenceException(String message, Throwable cause, org.antlr.v4.runtime.Token errorToken) Constructs exception with message, cause and error token location.UnresolvedReferenceException(String message, org.antlr.v4.runtime.Token errorToken) Constructs exception with message and error token location.UnresolvedReferenceException(Throwable cause, org.antlr.v4.runtime.Token errorToken) Constructs exception with cause and error token location.UnresolvedReferenceException(org.antlr.v4.runtime.Token errorToken) Constructs exception with error token location. -
Method Summary
Modifier and TypeMethodDescriptionorg.antlr.v4.runtime.TokenGets the token where unresolved reference occurred.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnresolvedReferenceException
public UnresolvedReferenceException(org.antlr.v4.runtime.Token errorToken) Constructs exception with error token location.- Parameters:
errorToken- the token where unresolved reference occurred
-
UnresolvedReferenceException
Constructs exception with message and error token location.- Parameters:
message- the detail messageerrorToken- the token where unresolved reference occurred
-
UnresolvedReferenceException
Constructs exception with cause and error token location.- Parameters:
cause- the root cause exceptionerrorToken- the token where unresolved reference occurred
-
UnresolvedReferenceException
public UnresolvedReferenceException(String message, Throwable cause, org.antlr.v4.runtime.Token errorToken) Constructs exception with message, cause and error token location.- Parameters:
message- the detail messagecause- the root cause exceptionerrorToken- the token where unresolved reference occurred
-
UnresolvedReferenceException
public UnresolvedReferenceException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, org.antlr.v4.runtime.Token errorToken) Constructs exception with full exception details and error token location.- Parameters:
message- the detail messagecause- the root cause exceptionenableSuppression- whether suppression is enabledwritableStackTrace- whether stack trace is writableerrorToken- the token where unresolved reference occurred
-
-
Method Details
-
getErrorToken
public org.antlr.v4.runtime.Token getErrorToken()Gets the token where unresolved reference occurred.- Returns:
- the error token
-