org.synchronoss.cpo
Class CpoException

Package class diagram package CpoException
java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.synchronoss.cpo.CpoException
All Implemented Interfaces:
java.io.Serializable

public class CpoException
extends java.lang.Exception

A CpoException is the common superclass for any number of CPO related exceptions that may occur during the execution of a business task.

Author:
David E. Berry
See Also:
Serialized Form

Field Summary
 java.lang.Throwable detail
          Nested Exception to hold wrapped exception.
 
Constructor Summary
CpoException()
          Constructs a CpoException with no specified detail message.
CpoException(java.lang.String s)
          Constructs a CpoException with the specified detail message.
CpoException(java.lang.String s, java.lang.Throwable ex)
          Constructs a CpoException with the specified detail message and nested exception.
CpoException(java.lang.Throwable ex)
          Constructs a CpoException with the specified detail message and nested exception.
 
Method Summary
 java.lang.String getMessage()
          Returns the detail message, including the message from the nested exception if there is one.
 void printStackTrace()
          Prints the composite message to System.err.
 void printStackTrace(java.io.PrintStream ps)
          Prints the composite message and the embedded stack trace to the specified stream ps.
 void printStackTrace(java.io.PrintWriter pw)
          Prints the composite message and the embedded stack trace to the specified print writer pw.
 
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
 

Field Detail

detail

public java.lang.Throwable detail
Nested Exception to hold wrapped exception.

Constructor Detail

CpoException

public CpoException()
Constructs a CpoException with no specified detail message.


CpoException

public CpoException(java.lang.String s)
Constructs a CpoException with the specified detail message.

Parameters:
s - the detail message

CpoException

public CpoException(java.lang.String s,
                    java.lang.Throwable ex)
Constructs a CpoException with the specified detail message and nested exception.

Parameters:
s - the detail message
ex - the nested exception

CpoException

public CpoException(java.lang.Throwable ex)
Constructs a CpoException with the specified detail message and nested exception.

Parameters:
ex - the nested exception
Method Detail

getMessage

public java.lang.String getMessage()
Returns the detail message, including the message from the nested exception if there is one.

Overrides:
getMessage in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream ps)
Prints the composite message and the embedded stack trace to the specified stream ps.

Overrides:
printStackTrace in class java.lang.Throwable
Parameters:
ps - the print stream

printStackTrace

public void printStackTrace()
Prints the composite message to System.err.

Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintWriter pw)
Prints the composite message and the embedded stack trace to the specified print writer pw.

Overrides:
printStackTrace in class java.lang.Throwable
Parameters:
pw - the print writer


Copyright © 2009. All Rights Reserved.