|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
edu.unm.cs.cs351.tdrl.f07.p1.CrawlFatalException
public class CrawlFatalException
This class indicates fatal errors in the execution of the Crawler suite. Errors of this type are expected to be non-recoverable and to cause a (clean) program shutdown.
Because this is a RuntimeException, it need not be declared in the
throws clause of a method. (Formally, it is an unchecked exception.)
However, it is good practice to document it via @throws clauses in your javadoc
strings.
This class is only a marker class -- it exists for its name/type only. It does not
add any functionality to (or modify any functionality of) the RuntimeException
class. It contains only constructors that proxy up to the parent class.
| Constructor Summary | |
|---|---|
CrawlFatalException()
Construct a default Crawler exception, with no information about why it was generated. |
|
CrawlFatalException(String msg)
Construct a Crawler exception with an informative message about why it was generated. |
|
CrawlFatalException(String message,
Throwable cause)
A combination of CrawlFatalException(String) and
CrawlFatalException(Throwable) -- generate an exception with both an
informative message and an original root cause. |
|
CrawlFatalException(Throwable cause)
Construct a Crawler exception that "wraps" another, primary exception. |
|
| Method Summary |
|---|
| 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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CrawlFatalException()
public CrawlFatalException(String msg)
msg - String describing the cause of the exceptionpublic CrawlFatalException(Throwable cause)
IOException or somesuch.)
You can then generate a Crawler-oriented exception, but keep a record of why it
was generated -- what the root cause was.
cause - Exception that originally caused the whole mess
public CrawlFatalException(String message,
Throwable cause)
CrawlFatalException(String) and
CrawlFatalException(Throwable) -- generate an exception with both an
informative message and an original root cause.
message - String describing the cause of the exceptioncause - Exception that originally caused the whole mess
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||