|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Error
org.makumba.MakumbaError
public class MakumbaError
A generic Makumba fatal error, due to misconfiguration, bad Data Definition (MDD) syntax, bad MQL syntax, database fatal error, etc. Such an error usually denotes either a configuration mistake from the makumba API user, either a fatal database problem that makes it impossible for the makumba application to work. Like all errors, Makumba errors don't need to be caught, as they occur in "terminal" conditions anyway. Most makumba errors come from exceptions, which can be retrieved calling getReason()
Field Summary | |
---|---|
(package private) String |
explanation
|
Constructor Summary | |
---|---|
MakumbaError()
Build an empty makumba error |
|
MakumbaError(String explanation)
Build a makumba error with the given explanation |
|
MakumbaError(Throwable reason)
Build a makumba error and associate it with the given reason |
|
MakumbaError(Throwable reason,
String expl)
Build a makumba error and associate it with the given reason and explanation text |
Method Summary | |
---|---|
void |
printStackTrace()
Print the stacktrace of the reason exception, if any, otherwise print a normal stack trace |
void |
printStackTrace(PrintStream ps)
Print the stacktrace of the reason exception, if any, otherwise print a normal stack trace |
void |
printStackTrace(PrintWriter ps)
Print the stacktrace of the reason exception, if any, otherwise print a normal stack trace |
String |
toString()
A string representation of this error, for debugging |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
String explanation
Constructor Detail |
---|
public MakumbaError(Throwable reason)
public MakumbaError(Throwable reason, String expl)
public MakumbaError()
public MakumbaError(String explanation)
Method Detail |
---|
public void printStackTrace()
printStackTrace
in class Throwable
public void printStackTrace(PrintStream ps)
printStackTrace
in class Throwable
public void printStackTrace(PrintWriter ps)
printStackTrace
in class Throwable
public String toString()
toString
in class Throwable
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |