Class StatementSourceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.opendaylight.yangtools.yang.model.api.meta.StatementSourceException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
InferenceException
,SourceException
An exception identifying a problem detected at a particular YANG statement. Exposes
sourceRef()
to that
statement.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStatementSourceException
(StatementSourceReference sourceRef, String message) StatementSourceException
(StatementSourceReference sourceRef, String format, Object... args) StatementSourceException
(StatementSourceReference sourceRef, String message, Throwable cause) StatementSourceException
(StatementSourceReference sourceRef, Throwable cause, String format, Object... args) -
Method Summary
Modifier and TypeMethodDescriptionfinal @NonNull StatementSourceReference
Return the reference to the source which caused this exception.protected final void
throwNSE()
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
StatementSourceException
-
StatementSourceException
public StatementSourceException(StatementSourceReference sourceRef, String message, Throwable cause) -
StatementSourceException
-
StatementSourceException
public StatementSourceException(StatementSourceReference sourceRef, Throwable cause, String format, Object... args)
-
-
Method Details
-
sourceRef
Return the reference to the source which caused this exception.- Returns:
- the reference to the source which caused this exception
-
throwNSE
- Throws:
NotSerializableException
-