it.amattioli.workstate.exceptions
Class ErrorMessages
java.lang.Object
it.amattioli.workstate.exceptions.MessageBundle
it.amattioli.workstate.exceptions.ErrorMessages
public class ErrorMessages
- extends MessageBundle
Utility class to easily throw exceptions.
|
Method Summary |
static ErrorMessages |
getInstance()
|
static ClassCastException |
newClassCastException(ErrorMessage msg)
|
static ClassCastException |
newClassCastException(ErrorMessage msg,
String arg)
|
static ClassCastException |
newClassCastException(ErrorMessage msg,
String[] args)
|
static ClassCastException |
newClassCastException(ErrorMessage msg,
String arg1,
String arg2)
|
static ClassCastException |
newClassCastException(ErrorMessage msg,
String arg1,
String arg2,
String arg3)
|
static IllegalArgumentException |
newIllegalArgumentException(ErrorMessage msg)
|
static IllegalArgumentException |
newIllegalArgumentException(ErrorMessage msg,
String arg)
|
static IllegalArgumentException |
newIllegalArgumentException(ErrorMessage msg,
String[] args)
|
static IllegalArgumentException |
newIllegalArgumentException(ErrorMessage msg,
String arg1,
String arg2)
|
static IllegalStateException |
newIllegalStateException(ErrorMessage msg)
|
static IllegalStateException |
newIllegalStateException(ErrorMessage msg,
String arg)
|
static IllegalStateException |
newIllegalStateException(ErrorMessage msg,
String[] args)
|
static IllegalStateException |
newIllegalStateException(ErrorMessage msg,
String arg1,
String arg2)
|
static NullPointerException |
newNullPointerException(ErrorMessage msg)
|
static NullPointerException |
newNullPointerException(ErrorMessage msg,
String arg)
|
static NullPointerException |
newNullPointerException(ErrorMessage msg,
String[] args)
|
static NullPointerException |
newNullPointerException(ErrorMessage msg,
String arg1,
String arg2)
|
static UnsupportedOperationException |
newUnsupportedOperationException(ErrorMessage msg)
|
static UnsupportedOperationException |
newUnsupportedOperationException(ErrorMessage msg,
String arg)
|
static UnsupportedOperationException |
newUnsupportedOperationException(ErrorMessage msg,
String[] args)
|
static UnsupportedOperationException |
newUnsupportedOperationException(ErrorMessage msg,
String arg1,
String arg2)
|
static WorkflowException |
newWorkflowException(String tag,
ErrorMessage msg)
|
static WorkflowException |
newWorkflowException(String tag,
ErrorMessage msg,
String[] args)
|
static WorkflowException |
newWorkflowException(String tag,
ErrorMessage msg,
String arg1,
String arg2)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static ErrorMessages getInstance()
newIllegalArgumentException
public static IllegalArgumentException newIllegalArgumentException(ErrorMessage msg,
String[] args)
newIllegalArgumentException
public static IllegalArgumentException newIllegalArgumentException(ErrorMessage msg)
newIllegalArgumentException
public static IllegalArgumentException newIllegalArgumentException(ErrorMessage msg,
String arg)
newIllegalArgumentException
public static IllegalArgumentException newIllegalArgumentException(ErrorMessage msg,
String arg1,
String arg2)
newNullPointerException
public static NullPointerException newNullPointerException(ErrorMessage msg,
String[] args)
newNullPointerException
public static NullPointerException newNullPointerException(ErrorMessage msg)
newNullPointerException
public static NullPointerException newNullPointerException(ErrorMessage msg,
String arg)
newNullPointerException
public static NullPointerException newNullPointerException(ErrorMessage msg,
String arg1,
String arg2)
newIllegalStateException
public static IllegalStateException newIllegalStateException(ErrorMessage msg,
String[] args)
newIllegalStateException
public static IllegalStateException newIllegalStateException(ErrorMessage msg)
newIllegalStateException
public static IllegalStateException newIllegalStateException(ErrorMessage msg,
String arg)
newIllegalStateException
public static IllegalStateException newIllegalStateException(ErrorMessage msg,
String arg1,
String arg2)
newUnsupportedOperationException
public static UnsupportedOperationException newUnsupportedOperationException(ErrorMessage msg,
String[] args)
newUnsupportedOperationException
public static UnsupportedOperationException newUnsupportedOperationException(ErrorMessage msg)
newUnsupportedOperationException
public static UnsupportedOperationException newUnsupportedOperationException(ErrorMessage msg,
String arg)
newUnsupportedOperationException
public static UnsupportedOperationException newUnsupportedOperationException(ErrorMessage msg,
String arg1,
String arg2)
newClassCastException
public static ClassCastException newClassCastException(ErrorMessage msg,
String[] args)
newClassCastException
public static ClassCastException newClassCastException(ErrorMessage msg)
newClassCastException
public static ClassCastException newClassCastException(ErrorMessage msg,
String arg)
newClassCastException
public static ClassCastException newClassCastException(ErrorMessage msg,
String arg1,
String arg2)
newClassCastException
public static ClassCastException newClassCastException(ErrorMessage msg,
String arg1,
String arg2,
String arg3)
newWorkflowException
public static WorkflowException newWorkflowException(String tag,
ErrorMessage msg,
String[] args)
newWorkflowException
public static WorkflowException newWorkflowException(String tag,
ErrorMessage msg)
newWorkflowException
public static WorkflowException newWorkflowException(String tag,
ErrorMessage msg,
String arg1,
String arg2)
Copyright © 2011. All Rights Reserved.