|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object marf.util.ExceptionFactory
public class ExceptionFactory
Factory for producing various MARF exception objects.
$Id: ExceptionFactory.java,v 1.2 2007/12/01 00:31:01 mokhov Exp $
Constructor Summary | |
---|---|
protected |
ExceptionFactory()
Factories are often singletons, so technically, this constructor should be private and the getInstance() method should be present. |
Method Summary | |
---|---|
static ClassificationException |
createClassificationException()
|
static ClassificationException |
createClassificationException(java.lang.Exception poException)
|
static ClassificationException |
createClassificationException(java.lang.String pstrMessage)
|
static ClassificationException |
createClassificationException(java.lang.String pstrMessage,
java.lang.Exception poException)
|
static MARFException |
createMARFException()
Creates an instance of the MARFException object. |
static MARFException |
createMARFException(java.lang.Exception poException)
Creates an instance of the MARFException object. |
static MARFException |
createMARFException(java.lang.String pstrMessage)
Creates an instance of the MARFException object with a custom message. |
static MARFException |
createMARFException(java.lang.String pstrMessage,
java.lang.Exception poException)
Creates an instance of the MARFException object with a custom message and an exception object. |
static MARFRuntimeException |
createMARFRuntimeException()
|
static MARFRuntimeException |
createMARFRuntimeException(java.lang.Exception poException)
|
static MARFRuntimeException |
createMARFRuntimeException(java.lang.String pstrMessage)
|
static MARFRuntimeException |
createMARFRuntimeException(java.lang.String pstrMessage,
java.lang.Exception poException)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ExceptionFactory()
Method Detail |
---|
public static MARFException createMARFException()
MARFException.MARFException()
public static MARFException createMARFException(java.lang.String pstrMessage)
pstrMessage
- the custom message
MARFException.MARFException(String)
public static MARFException createMARFException(java.lang.String pstrMessage, java.lang.Exception poException)
pstrMessage
- the custom messagepoException
- the exception object to encapsulate
MARFException.MARFException(String, Exception)
public static MARFException createMARFException(java.lang.Exception poException)
poException
- the exception object to encapsulate
MARFException.MARFException(Exception)
public static MARFRuntimeException createMARFRuntimeException()
public static MARFRuntimeException createMARFRuntimeException(java.lang.String pstrMessage)
public static MARFRuntimeException createMARFRuntimeException(java.lang.String pstrMessage, java.lang.Exception poException)
public static MARFRuntimeException createMARFRuntimeException(java.lang.Exception poException)
public static ClassificationException createClassificationException()
public static ClassificationException createClassificationException(java.lang.String pstrMessage)
public static ClassificationException createClassificationException(java.lang.String pstrMessage, java.lang.Exception poException)
public static ClassificationException createClassificationException(java.lang.Exception poException)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |