public class YangToolException extends RuntimeException
| Constructor and Description |
|---|
YangToolException(String message)
Creates a new YANG tool exception with given message.
|
YangToolException(String message,
Throwable cause)
Creates a new tool exception from given message and cause.
|
YangToolException(Throwable cause)
Creates a new tool exception from cause.
|
| Modifier and Type | Method and Description |
|---|---|
YangFileInfo |
getCurYangFile()
Retrieves the current YANG files for which exception has occured.
|
void |
setCurYangFile(YangFileInfo curYangFile)
Update the YANG file which caused the exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic YangToolException(String message)
message - the detail of exception in stringpublic YangToolException(String message, Throwable cause)
message - the detail of exception in stringcause - underlying cause of the errorpublic YangToolException(Throwable cause)
cause - underlying cause of the errorpublic YangFileInfo getCurYangFile()
public void setCurYangFile(YangFileInfo curYangFile)
curYangFile - YANG files being processedCopyright © 2016. All rights reserved.