com.day.cq.contentbus
Class ContentBusException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.day.cq.contentbus.ContentBusException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CircularLinksException, NoSuchContentElementException, NoSuchPageException, NoSuchVersionException, PageExistsException, SubjectExistsException

public class ContentBusException
extends Exception

Main exception thrown by classes in this package. May either contain an error message or another exception wrapped inside this exception.

Since:
antbear
Version:
$Revision: 41618 $, $Date: 2008-09-18 13:53:39 +0200 (Gio, 18 Set 2008) $
Author:
tripod
See Also:
Serialized Form

Field Summary
protected  Exception rootException
          Root failure cause
 
Constructor Summary
ContentBusException(Exception e)
          Class constructor that creates a ContentBusException given a root exception
ContentBusException(String s)
          Class constructor that creates a ContentBusException given a message describing the failure cause
ContentBusException(String s, Exception e)
          Class constructor that creates a ContentBusException given a message describing the failure cause and a root exception
 
Method Summary
 String getMessage()
          Returns the error message string of this exception.
 Exception getRootException()
          Returns the root exception of this exception.
 void printStackTrace()
          Prints this ContentBusException and its backtrace to the standard error stream.
 void printStackTrace(PrintStream s)
          Prints this ContentBusException and its backtrace to the specified print stream.
 void printStackTrace(PrintWriter s)
          Prints this ContentBusException and its backtrace to the specified print writer.
 
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

rootException

protected Exception rootException
Root failure cause

Constructor Detail

ContentBusException

public ContentBusException(String s)
Class constructor that creates a ContentBusException given a message describing the failure cause

Parameters:
s - description

ContentBusException

public ContentBusException(String s,
                           Exception e)
Class constructor that creates a ContentBusException given a message describing the failure cause and a root exception

Parameters:
s - description
e - root failure cause

ContentBusException

public ContentBusException(Exception e)
Class constructor that creates a ContentBusException given a root exception

Parameters:
e - root failure cause
Method Detail

getMessage

public String getMessage()
Returns the error message string of this exception.

Overrides:
getMessage in class Throwable
Returns:
error message string of this exception.

getRootException

public Exception getRootException()
Returns the root exception of this exception.

Returns:
the root exception of this exception

printStackTrace

public void printStackTrace()
Prints this ContentBusException and its backtrace to the standard error stream.

Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintStream s)
Prints this ContentBusException and its backtrace to the specified print stream.

Overrides:
printStackTrace in class Throwable
Parameters:
s - PrintStream to use for output

printStackTrace

public void printStackTrace(PrintWriter s)
Prints this ContentBusException and its backtrace to the specified print writer.

Overrides:
printStackTrace in class Throwable
Parameters:
s - PrintWriter to use for output


Copyright © 2011-2013 Adobe Systems Incorporated. All Rights Reserved.