public class NXException extends Exception implements Serializable
Modifier and Type | Method and Description |
---|---|
void |
assertErrorCode(int errorCode)
Throws an exception if this NXException does not have the specified error code
|
static NXException |
create(String message)
Creates an NXException
|
int |
errorCode()
Gets the error code associated with this exception
|
static void |
throwUnexpectedSuccess() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static NXException create(String message)
public int errorCode()
public void assertErrorCode(int errorCode) throws NXException
errorCode
- The expected error code.NXException
- if this.errorCode() != errorCodepublic static void throwUnexpectedSuccess() throws NXException
NXException
Copyright 2017 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.