com.scms.api.sce
Class OperationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.scms.api.sce.OperationException
- All Implemented Interfaces:
- java.io.Serializable
public class OperationException
- extends java.lang.Exception
All functional errors of the SCE Subscriber Java API are provided by the same Java class
OperationException, which is contrary to normal Java usage.
This "contrary" approach was chosen because of the required "cross-language and cross-protocol"
nature of the SCE Subscriber API which should allow all future SCE API implementations to look and feel the same (Java, C, C++).
Each OperationException exception provides the following information:
1) A unique error code (long)
2) An informative message (java.lang.String)
3) A server-side stack trace (java.lang.String)
See the List of Error Codes in Appendix A of the Programmers Guide for more details
about error codes and their significance.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
OperationException
public OperationException()
OperationException
public OperationException(long code,
java.lang.String msg,
java.lang.String stackTrace)
OperationException
public OperationException(java.lang.Exception otherEx)
getCode
public long getCode()
- Obtains the unique code of the exception
- Returns:
getServerStackTrace
public java.lang.String getServerStackTrace()
- Obtains the server stack trace of the exception
- Returns:
getMessage
public java.lang.String getMessage()
- Obtains the message of the exception
- Overrides:
getMessage in class java.lang.Throwable
- Returns:
printStackTrace
public void printStackTrace()
- Overrides:
printStackTrace in class java.lang.Throwable
printStackTrace
public void printStackTrace(java.io.PrintWriter s)
- Overrides:
printStackTrace in class java.lang.Throwable
printStackTrace
public void printStackTrace(java.io.PrintStream s)
- Overrides:
printStackTrace in class java.lang.Throwable