|
||||||||||
| 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.ServiceException
public class ServiceException
An exception from an OPC UA service call. On client-side, read the ServiceResult to check which error occurred during a call to an OPC UA service. On server side, generate these exceptions to make the server return the error. The standard error codes are defined in StatusCodes.
| Constructor Summary | |
|---|---|
ServiceException(org.opcfoundation.ua.common.ServiceFaultException e)
Creates a new ServiceException from a ServiceFaultException (generated by the stack) |
|
ServiceException(org.opcfoundation.ua.common.ServiceResultException e)
Creates a new ServiceException from a ServiceResultException (generated by the stack) |
|
ServiceException(org.opcfoundation.ua.builtintypes.StatusCode statusCode)
Creates a new Service Result Exception. |
|
ServiceException(org.opcfoundation.ua.builtintypes.StatusCode statusCode,
org.opcfoundation.ua.builtintypes.DiagnosticInfo diagnosticInfo)
Creates a new Service Result Exception. |
|
ServiceException(String msg)
Creates a new Service Result Exception with StatusCode = Bad_UnexpectedError. |
|
ServiceException(String msg,
org.opcfoundation.ua.common.ServiceFaultException e)
|
|
ServiceException(String msg,
org.opcfoundation.ua.common.ServiceResultException e)
|
|
ServiceException(String msg,
org.opcfoundation.ua.builtintypes.StatusCode statusCode)
Creates a new Service Result Exception. |
|
ServiceException(String msg,
org.opcfoundation.ua.builtintypes.StatusCode statusCode,
org.opcfoundation.ua.builtintypes.DiagnosticInfo diagnosticInfo,
Throwable cause)
Creates a new Service Result Exception. |
|
ServiceException(String msg,
org.opcfoundation.ua.builtintypes.UnsignedInteger statusCode)
Creates a new Service Result Exception. |
|
ServiceException(String msg,
org.opcfoundation.ua.builtintypes.UnsignedInteger statusCode,
org.opcfoundation.ua.builtintypes.DiagnosticInfo diagnosticInfo,
Throwable cause)
Creates a new Service Result Exception. |
|
ServiceException(org.opcfoundation.ua.builtintypes.UnsignedInteger statusCode)
Creates a new Service Result Exception. |
|
| Method Summary | |
|---|---|
org.opcfoundation.ua.builtintypes.DiagnosticInfo |
getDiagnosticInfo()
|
org.opcfoundation.ua.builtintypes.StatusCode |
getServiceResult()
|
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 ServiceException(org.opcfoundation.ua.common.ServiceFaultException e)
e - public ServiceException(org.opcfoundation.ua.common.ServiceResultException e)
e - public ServiceException(org.opcfoundation.ua.builtintypes.StatusCode statusCode)
statusCode - The error status code defining the actual service call error.
public ServiceException(org.opcfoundation.ua.builtintypes.StatusCode statusCode,
org.opcfoundation.ua.builtintypes.DiagnosticInfo diagnosticInfo)
statusCode - The error status code defining the actual service call error.diagnosticInfo - The diagnostic info for the exceptionpublic ServiceException(String msg)
msg - Error message.
public ServiceException(String msg,
org.opcfoundation.ua.common.ServiceFaultException e)
msg - Error message.e -
public ServiceException(String msg,
org.opcfoundation.ua.common.ServiceResultException e)
msg - Error message.e -
public ServiceException(String msg,
org.opcfoundation.ua.builtintypes.StatusCode statusCode)
msg - Error message.statusCode - The error status code value defining the actual service call error.
public ServiceException(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 ServiceException(String msg,
org.opcfoundation.ua.builtintypes.UnsignedInteger statusCode)
msg - Error message.statusCode - The error status code value defining the actual service call error.
public ServiceException(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 ServiceException(org.opcfoundation.ua.builtintypes.UnsignedInteger statusCode)
statusCode - The error status code value defining the actual service call error.| Method Detail |
|---|
public org.opcfoundation.ua.builtintypes.DiagnosticInfo getDiagnosticInfo()
public org.opcfoundation.ua.builtintypes.StatusCode getServiceResult()
public String toString()
toString in class Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||