|
Version: 3.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.generationcp.core.GCPException
public class GCPException
A general exception which can be used as a wrapper around other exceptions. Using this exception simplifies the code (but on the other hand it makes it less "type-safe" - which is usually not a problem when dealing with exceptions).
| Constructor Summary | |
|---|---|
GCPException()
Constructs a new exception with null as its detail message. |
|
GCPException(java.lang.String s)
Constructs a new exception with the specified detail message. |
|
GCPException(java.lang.String s,
java.lang.Throwable cause)
Constructs a new exception with the specified detail message and cause. |
|
| Method Summary | |
|---|---|
static void |
formatAndLog(java.lang.Throwable e,
org.apache.commons.logging.Log otherLog)
Format given exception 'e' depending on how serious it it. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GCPException()
public GCPException(java.lang.String s)
s - message/reason
public GCPException(java.lang.String s,
java.lang.Throwable cause)
s - message (or reason of)cause - the cause, null value is permitted| Method Detail |
|---|
public static void formatAndLog(java.lang.Throwable e,
org.apache.commons.logging.Log otherLog)
e - an exception to be formatted and loggedotherLog - where to log it
|
Version: 3.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||