|
Evaluating Software Design Patterns — the "Gang of Four" patterns implemented in Java 6 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Error
dk.rode.thesis.singleton.SingletonError
public class SingletonError
A singleton error is thrown because of illegal access to a singleton constructor.
Implementation notes:
Declared as an error because illegal access to a singleton constructor
is most definitely a programmer error.
SimpsonsFamilySequence.SimpsonsFamilySequence(String...),
SimpsonsFamilySequence.SimpsonsFamilySequence(SimpsonsFamilySequence),
Serialized Form| Field Summary | |
|---|---|
(package private) static long |
serialVersionUID
Serial version id. |
| Constructor Summary | |
|---|---|
SingletonError()
No-arg constructor. |
|
SingletonError(CallerClass caller)
Constructor. |
|
| 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 |
| Field Detail |
|---|
static final long serialVersionUID
| Constructor Detail |
|---|
public SingletonError()
public SingletonError(CallerClass caller)
caller - The illegal caller; can be null.
|
Gunni Rode / rode.dk | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||