|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ostore.util.Carp
A convenience class for generating error messages, complete with "carp" and "croak", borrowed from PERL.
Constructor Summary | |
Carp()
|
Method Summary | |
static void |
carp(String msg)
Print an error message to standard error. |
static void |
carp(Throwable e)
Print an exception's message to standard error. |
static void |
croak()
Kill the whole jvm. |
static void |
croak(String msg)
Print an error message to standard error and exit. |
static void |
croak(Throwable e)
Print an exception's message to standard error and exit. |
static void |
die()
Exit with an error code. |
static void |
die(String msg)
Print an error message and stack trace to standard error and exit. |
static void |
die(Throwable e)
Print an exception's message and stack trace to standard error and exit. |
static void |
dumpStack()
Print out the stack trace of the current thread. |
static void |
error(String msg)
Print an error message and current stack trace to standard error. |
static void |
error(Throwable e)
Print an exception's message and stack trace to standard error. |
static void |
out(String msg)
Print a message to standard out. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Carp()
Method Detail |
public static void out(String msg)
public static void carp(String msg)
public static void carp(Throwable e)
public static void error(String msg)
public static void error(Throwable e)
public static void croak()
public static void croak(String msg)
public static void croak(Throwable e)
public static void die()
public static void die(String msg)
public static void die(Throwable e)
public static void dumpStack()
Carp.dumpStack
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |