org.chromattic.core
Class ThrowableFactory<E extends java.lang.Throwable>

java.lang.Object
  extended by org.chromattic.core.ThrowableFactory<E>

public abstract class ThrowableFactory<E extends java.lang.Throwable>
extends java.lang.Object

Author:
Julien Viet

Field Summary
static ThrowableFactory<java.lang.AssertionError> ASSERT
           
static ThrowableFactory<java.lang.IllegalArgumentException> IAE
           
static ThrowableFactory<java.lang.IllegalStateException> ISE
           
static ThrowableFactory<java.lang.NullPointerException> NPE
           
static ThrowableFactory<java.lang.UnsupportedOperationException> TODO
           
static ThrowableFactory<java.lang.UnsupportedOperationException> UNSUPPORTED
           
 
Constructor Summary
ThrowableFactory()
           
 
Method Summary
 E newThrowable()
           
 E newThrowable(java.lang.String msg)
           
 E newThrowable(java.lang.Throwable cause)
           
abstract  E newThrowable(java.lang.Throwable cause, java.lang.String msg)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NPE

public static ThrowableFactory<java.lang.NullPointerException> NPE

IAE

public static ThrowableFactory<java.lang.IllegalArgumentException> IAE

ISE

public static ThrowableFactory<java.lang.IllegalStateException> ISE

ASSERT

public static ThrowableFactory<java.lang.AssertionError> ASSERT

UNSUPPORTED

public static ThrowableFactory<java.lang.UnsupportedOperationException> UNSUPPORTED

TODO

public static ThrowableFactory<java.lang.UnsupportedOperationException> TODO
Constructor Detail

ThrowableFactory

public ThrowableFactory()
Method Detail

newThrowable

public E newThrowable()

newThrowable

public E newThrowable(java.lang.String msg)

newThrowable

public E newThrowable(java.lang.Throwable cause)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

newThrowable

public abstract E newThrowable(java.lang.Throwable cause,
                               java.lang.String msg)


Copyright © 2013 eXo Platform SAS. All Rights Reserved.