org.opcfoundation.ua.common
Class ServiceFaultException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.opcfoundation.ua.common.ServiceResultException
              extended by org.opcfoundation.ua.common.ServiceFaultException
All Implemented Interfaces:
Serializable

public class ServiceFaultException
extends ServiceResultException

ServiceFaultException is an error that occurs in execution an operation. It wraps ServiceFault into an exception.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.opcfoundation.ua.common.ServiceResultException
statusCode, text
 
Constructor Summary
ServiceFaultException(ServiceFault serviceFault)
          Constructor for ServiceFaultException.
ServiceFaultException(Throwable t)
          Constructor for ServiceFaultException.
 
Method Summary
 String getMessage()
          
 ServiceFault getServiceFault()
          Getter for the field serviceFault.
 StatusCode getStatusCode()
          getStatusCode.
 String toString()
          
 
Methods inherited from class org.opcfoundation.ua.common.ServiceResultException
getAdditionalTextField, toServiceResult
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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

ServiceFaultException

public ServiceFaultException(Throwable t)

Constructor for ServiceFaultException.

Parameters:
t - a Throwable object.

ServiceFaultException

public ServiceFaultException(ServiceFault serviceFault)

Constructor for ServiceFaultException.

Parameters:
serviceFault - a ServiceFault object.
Method Detail

getServiceFault

public ServiceFault getServiceFault()

Getter for the field serviceFault.

Returns:
a ServiceFault object.

toString

public String toString()

Overrides:
toString in class Throwable

getMessage

public String getMessage()

Overrides:
getMessage in class ServiceResultException

getStatusCode

public StatusCode getStatusCode()

getStatusCode.

Overrides:
getStatusCode in class ServiceResultException
Returns:
a StatusCode object.


Copyright © 2018. All rights reserved.