|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.prosysopc.ua.UaException
com.prosysopc.ua.StatusException
public class StatusException
An operation level exception. The exception is raised when a read or write operation to an OPC UA server returns a status code of bad quality. Read the status code for the status and DiagnosticInfo for additional diagnostics, provided by the server. Note that the diagnostics are only returned, when requested by the client application (by defining Server.OperationDiagnosticMask).
UaClient,
StatusCodes,
Serialized Form| Constructor Summary | |
|---|---|
StatusException(org.opcfoundation.ua.common.ServiceFaultException e)
Creates a new StatusException from a ServiceFaultException |
|
StatusException(org.opcfoundation.ua.common.ServiceResultException e)
Creates a new StatusException from an ServiceResultException |
|
StatusException(org.opcfoundation.ua.builtintypes.StatusCode statusCode)
Creates a new StatusException. |
|
StatusException(org.opcfoundation.ua.builtintypes.StatusCode statusCode,
org.opcfoundation.ua.builtintypes.DiagnosticInfo diagnosticInfo)
|
|
StatusException(org.opcfoundation.ua.builtintypes.StatusCode statusCode,
Throwable cause)
Creates a new StatusException. |
|
StatusException(String msg)
Creates a new StatusException with StatusCode = Bad_UnexpectedError. |
|
StatusException(String msg,
org.opcfoundation.ua.common.ServiceFaultException e)
Creates a new StatusException with a custom message and fault |
|
StatusException(String msg,
org.opcfoundation.ua.common.ServiceResultException e)
Creates a new StatusException with a custom message and exception. |
|
StatusException(String msg,
org.opcfoundation.ua.builtintypes.StatusCode statusCode)
Creates a new StatusException with a custom message and status code. |
|
StatusException(String msg,
org.opcfoundation.ua.builtintypes.StatusCode statusCode,
org.opcfoundation.ua.builtintypes.DiagnosticInfo diagnosticInfo,
Throwable cause)
Creates a new StatusException. |
|
StatusException(String msg,
org.opcfoundation.ua.builtintypes.UnsignedInteger statusCode)
Creates a new StatusException. |
|
StatusException(String msg,
org.opcfoundation.ua.builtintypes.UnsignedInteger statusCode,
org.opcfoundation.ua.builtintypes.DiagnosticInfo diagnosticInfo,
Throwable cause)
Creates a new StatusException. |
|
StatusException(org.opcfoundation.ua.builtintypes.UnsignedInteger statusCode)
Creates a new StatusException. |
|
StatusException(org.opcfoundation.ua.builtintypes.UnsignedInteger statusCode,
org.opcfoundation.ua.builtintypes.DiagnosticInfo diagnosticInfo)
Creates a new StatusException with a status code and diagnostics |
|
StatusException(org.opcfoundation.ua.builtintypes.UnsignedInteger statusCode,
Throwable cause)
Creates a new StatusException. |
|
| Method Summary | |
|---|---|
org.opcfoundation.ua.builtintypes.DiagnosticInfo |
getDiagnosticInfo()
The diagnostics of the error. |
org.opcfoundation.ua.builtintypes.StatusCode |
getStatusCode()
The status code of the error. |
static org.opcfoundation.ua.builtintypes.DiagnosticInfo |
toDiagnosticInfo(org.opcfoundation.ua.core.ServiceFault serviceFault)
Get the diagnotsics from a service fault. |
String |
toString()
|
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StatusException(org.opcfoundation.ua.common.ServiceFaultException e)
e - the fault exceptionpublic StatusException(org.opcfoundation.ua.common.ServiceResultException e)
e - the exceptionpublic StatusException(org.opcfoundation.ua.builtintypes.StatusCode statusCode)
statusCode - The error status code defining the actual service call error.
public StatusException(org.opcfoundation.ua.builtintypes.StatusCode statusCode,
org.opcfoundation.ua.builtintypes.DiagnosticInfo diagnosticInfo)
statusCode - diagnosticInfo -
public StatusException(org.opcfoundation.ua.builtintypes.StatusCode statusCode,
Throwable cause)
statusCode - The error status code defining the actual service call error.cause - The original exception.public StatusException(String msg)
msg - Error message.
public StatusException(String msg,
org.opcfoundation.ua.common.ServiceFaultException e)
msg - Error message.e - the fault exception, used to initialize the status code and diagnostics
public StatusException(String msg,
org.opcfoundation.ua.common.ServiceResultException e)
msg - Error message.e - the exception
public StatusException(String msg,
org.opcfoundation.ua.builtintypes.StatusCode statusCode)
msg - Error message.statusCode - The error status code value defining the actual service call error.
public StatusException(String msg,
org.opcfoundation.ua.builtintypes.StatusCode statusCode,
org.opcfoundation.ua.builtintypes.DiagnosticInfo diagnosticInfo,
Throwable cause)
msg - Error message.statusCode - The error status code defining the actual service call error.diagnosticInfo - The additional diagnostic information as returned from the server.cause - the original exception
public StatusException(String msg,
org.opcfoundation.ua.builtintypes.UnsignedInteger statusCode)
msg - Error message.statusCode - The error status code value defining the actual service call error.
public StatusException(String msg,
org.opcfoundation.ua.builtintypes.UnsignedInteger statusCode,
org.opcfoundation.ua.builtintypes.DiagnosticInfo diagnosticInfo,
Throwable cause)
msg - Error message.statusCode - The error status code value defining the actual service call error.cause - The original exceptionpublic StatusException(org.opcfoundation.ua.builtintypes.UnsignedInteger statusCode)
statusCode - The error status code value defining the actual service call error.
public StatusException(org.opcfoundation.ua.builtintypes.UnsignedInteger statusCode,
org.opcfoundation.ua.builtintypes.DiagnosticInfo diagnosticInfo)
statusCode - The error status code defining the actual service call error.diagnosticInfo - The diagnostics
public StatusException(org.opcfoundation.ua.builtintypes.UnsignedInteger statusCode,
Throwable cause)
statusCode - The error status code defining the actual service call error.cause - The original exception.| Method Detail |
|---|
public static org.opcfoundation.ua.builtintypes.DiagnosticInfo toDiagnosticInfo(org.opcfoundation.ua.core.ServiceFault serviceFault)
serviceFault - the fault
public org.opcfoundation.ua.builtintypes.DiagnosticInfo getDiagnosticInfo()
public org.opcfoundation.ua.builtintypes.StatusCode getStatusCode()
public String toString()
toString in class Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||