com.ibm.websphere.sca

Class ServiceBusinessException

  1. java.lang.Object
  2. extended byjava.lang.Throwable
  3. extended byjava.lang.Exception
  4. extended byjava.lang.RuntimeException
  5. extended bycom.ibm.websphere.sca.ServiceBusinessException
All implemented interfaces:
java.io.Serializable

  1. public class ServiceBusinessException
  2. extends java.lang.RuntimeException
Exception used to indicate that a business exception occurred during the execution of a business operation.
See Also:
Serialized Form

Field Summary

Modifier and Type Field and Description
  1. static
  2. java.lang.String
COPYRIGHT

Constructor Summary

Constructor and Description
ServiceBusinessException(java.lang.Object data)
Constructs a new ServiceBusinessException with the specified business data.
ServiceBusinessException(java.lang.Object data,java.lang.String name)
Constructs a new ServiceBusinessException with the specified business data and a name.
ServiceBusinessException(java.lang.Throwable cause)
Constructs a new ServiceBusinessException with the specified cause.
ServiceBusinessException(java.lang.Throwable cause,java.lang.String name)
Constructs a new ServiceBusinessException with the specified cause and a name.

Method Summary

Modifier and Type Method and Description
  1. java.lang.Object
getData()
Returns the business data representing this business exception.
  1. java.lang.String
getMessage()
Returns the detail message string of this business exception.
  1. java.lang.String
getName()
Returns the name associated with this business exception if set else returns null.
  1. void
printStackTrace(java.io.PrintStream s)
  1. void
printStackTrace(java.io.PrintWriter s)
  1. java.lang.String
toString()
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail

  1. public static final java.lang.String COPYRIGHT
See Also:

Constructor Detail

ServiceBusinessException

  1. public ServiceBusinessException( java.lang.Throwable cause)
Constructs a new ServiceBusinessException with the specified cause.
Parameters:
cause - The cause (which is saved to later retrieval by the getCause() method).

ServiceBusinessException

  1. public ServiceBusinessException( java.lang.Throwable cause,
  2. java.lang.String name)
Constructs a new ServiceBusinessException with the specified cause and a name.
Parameters:
cause - The cause (which is saved to later retrieval by the getCause() method).
name - A string name for the business exception

ServiceBusinessException

  1. public ServiceBusinessException( java.lang.Object data)
Constructs a new ServiceBusinessException with the specified business data.
Parameters:
data - The business data representing this business exception (which is saved to later retrieval by the getData() method).

ServiceBusinessException

  1. public ServiceBusinessException( java.lang.Object data,
  2. java.lang.String name)
Constructs a new ServiceBusinessException with the specified business data and a name.
Parameters:
data - The business data representing this business exception (which is saved to later retrieval by the getData() method).
name - A string name for the business exception

Method Detail

getData

  1. public java.lang.Object getData( )
Returns the business data representing this business exception.
Returns:
The business data.

getName

  1. public java.lang.String getName( )
Returns the name associated with this business exception if set else returns null.
Returns:
name.

getMessage

  1. public java.lang.String getMessage( )
Returns the detail message string of this business exception.
Overrides:
getMessage in class java.lang.Throwable
Returns:
The detail message string of this business exception.

toString

  1. public java.lang.String toString( )
Overrides:
toString in class java.lang.Throwable
See Also:
Throwable.toString()

printStackTrace

  1. public void printStackTrace(java.io.PrintStream s)
Overrides:
printStackTrace in class java.lang.Throwable
See Also:
Throwable.printStackTrace(java.io.PrintStream)

printStackTrace

  1. public void printStackTrace(java.io.PrintWriter s)
Overrides:
printStackTrace in class java.lang.Throwable
See Also:
Throwable.printStackTrace(java.io.PrintWriter)