public class ServiceBusinessException
extends java.lang.RuntimeException
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT |
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.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getData()
Returns the business data representing this business exception.
|
java.lang.String |
getMessage()
Returns the detail message string of this business exception.
|
java.lang.String |
getName()
Returns the name associated with this business exception if set else returns null.
|
void |
printStackTrace(java.io.PrintStream s) |
void |
printStackTrace(java.io.PrintWriter s) |
java.lang.String |
toString() |
public static final java.lang.String COPYRIGHT
public ServiceBusinessException(java.lang.Throwable cause)
cause
- The cause (which is saved to later retrieval by the getCause() method).public ServiceBusinessException(java.lang.Throwable cause, java.lang.String name)
cause
- The cause (which is saved to later retrieval by the getCause() method).name
- A string name for the business exceptionpublic ServiceBusinessException(java.lang.Object data)
data
- The business data representing this business exception (which is saved to later retrieval by the getData() method).public ServiceBusinessException(java.lang.Object data, java.lang.String name)
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 exceptionpublic java.lang.Object getData()
public java.lang.String getName()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.String toString()
toString
in class java.lang.Throwable
Throwable.toString()
public void printStackTrace(java.io.PrintStream s)
printStackTrace
in class java.lang.Throwable
Throwable.printStackTrace(java.io.PrintStream)
public void printStackTrace(java.io.PrintWriter s)
printStackTrace
in class java.lang.Throwable
Throwable.printStackTrace(java.io.PrintWriter)