|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.edu.agh.cast.rawdata.stat.ErrorRegistry
public final class ErrorRegistry
Registry for raw data errors. All errors handlers should use this class to fetch appropriate error types.
Method Summary | |
---|---|
boolean |
containsErrorCode(Integer code)
Checks if registry contains an error by given code. |
ErrorType |
get(Integer code)
Gets error type by given error code. |
Collection<ErrorType> |
getAll()
Returns all error types. |
static ErrorRegistry |
getInstance()
|
void |
register(ErrorType err)
Registers a given error type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ErrorRegistry getInstance()
public void register(ErrorType err) throws ErrorAlreadyExistsException
err
- error type to register
ErrorAlreadyExistsException
- when error to register already exists in registrypublic boolean containsErrorCode(Integer code)
code
- error code
public ErrorType get(Integer code)
code
- error code
public Collection<ErrorType> getAll()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |