Joda System API

org.joda.property
Class FactoryJodaException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--org.joda.property.FactoryJodaException
All Implemented Interfaces:
java.io.Serializable

public class FactoryJodaException
extends java.lang.RuntimeException

Exception thrown when a factory cannot create an object because it does not handle the specified hint.

Author:
Stephen Colebourne
See Also:
Serialized Form

Constructor Summary
FactoryJodaException(java.lang.Object hint)
          Constructor
FactoryJodaException(java.lang.Object hint, java.lang.String message)
          Constructor
FactoryJodaException(java.lang.Object hint, java.lang.String message, java.lang.Exception ex)
          Constructor
 
Method Summary
 java.lang.Exception getException()
          Get the exception which occurred as the factory tried to create an object
 void printStackTrace()
          Get the exception which occurred as the factory tried to create an object
 void printStackTrace(java.io.PrintStream out)
          Get the exception which occurred as the factory tried to create an object
 void printStackTrace(java.io.PrintWriter out)
          Get the exception which occurred as the factory tried to create an object
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FactoryJodaException

public FactoryJodaException(java.lang.Object hint)
Constructor


FactoryJodaException

public FactoryJodaException(java.lang.Object hint,
                            java.lang.String message)
Constructor


FactoryJodaException

public FactoryJodaException(java.lang.Object hint,
                            java.lang.String message,
                            java.lang.Exception ex)
Constructor

Method Detail

getException

public final java.lang.Exception getException()
Get the exception which occurred as the factory tried to create an object

Returns:
the underlying exception, never null

printStackTrace

public void printStackTrace()
Get the exception which occurred as the factory tried to create an object

Overrides:
printStackTrace in class java.lang.Throwable
Returns:
the underlying exception, never null

printStackTrace

public void printStackTrace(java.io.PrintStream out)
Get the exception which occurred as the factory tried to create an object

Overrides:
printStackTrace in class java.lang.Throwable
Returns:
the underlying exception, never null

printStackTrace

public void printStackTrace(java.io.PrintWriter out)
Get the exception which occurred as the factory tried to create an object

Overrides:
printStackTrace in class java.lang.Throwable
Returns:
the underlying exception, never null

Joda System API

Copyright © 2001-2003 Stephen Colebourne. All Rights Reserved.