Package Torello.JavaDoc
Class HiLiteError
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Error
-
- Torello.JavaDoc.HiLiteError
-
- All Implemented Interfaces:
java.io.Serializable
public class HiLiteError extends java.lang.Error
General Purpose Code-Hiliting Error.
This class is used by the JavaDoc Package to identify when the JavaDoc HiLiter Tool has run into a problem. The nature of these problems stems from improper HTML in the code-comments. An extremely detailed error message explaining how to fix the error in the source code that is having hilited code sections added to it is provided by all places where this error is thrown.- See Also:
- Serialized Form
Hi-Lited Source-Code:- View Here: Torello/JavaDoc/HiLiteError.java
- Open New Browser-Tab: Torello/JavaDoc/HiLiteError.java
-
-
Field Summary
Fields Modifier and Type Field static long
serialVersionUID
-
Constructor Summary
Constructors Constructor HiLiteError()
HiLiteError(String message)
HiLiteError(String message, Throwable cause)
HiLiteError(Throwable cause)
-
-
-
Field Detail
-
serialVersionUID
public static final long serialVersionUID
This fulfils the SerialVersion UID requirement for all classes that implement Java'sinterface java.io.Serializable
. Using theSerializable
Implementation offered by java is very easy, and can make saving program state when debugging a lot easier. It can also be used in place of more complicated systems like "hibernate" to store data as well.
Note that Java'sjava.lang.Exception
andjava.lang.Error
classes implement theSerializable interface
, and a warning-free build expects this field be defined here.- See Also:
- Constant Field Values
- Code:
- Exact Field Declaration Expression:
public static final long serialVersionUID = 1;
-
-
Constructor Detail
-
HiLiteError
public HiLiteError()
Constructs a newHiLiteError
with'null'
as its detail message. The cause is not initialized, and may subsequently be initialized by a call toThrowable.initCause(java.lang.Throwable)
.
-
HiLiteError
public HiLiteError(java.lang.String message)
Constructs a newHiLiteError
withnull
as its detail message. The cause is not initialized, and may subsequently be initialized by a call toThrowable.initCause(java.lang.Throwable)
.- Parameters:
message
- the detail message. The detail message is saved for later retrieval by theThrowable.getMessage()
method.
-
HiLiteError
public HiLiteError(java.lang.String message, java.lang.Throwable cause)
Constructs a newHiLiteError
with the specified detail message and cause.
NOTE: The detail message associated with cause is not automatically incorporated in this error's detail message.- Parameters:
message
- the detail message. The detail message is saved for later retrieval by theThrowable.getMessage()
method.cause
- the cause (which is saved for later retrieval by theThrowable.getCause()
method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
-
HiLiteError
public HiLiteError(java.lang.Throwable cause)
Constructs a newHiLiteError
with the specified cause and a detail message of(cause==null ? null : cause.toString())
(which typically contains the class and detail message of cause). This constructor is useful for errors that are little more than wrappers for other throwables.- Parameters:
cause
- the cause (which is saved for later retrieval by theThrowable.getCause()
method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
-
-