public abstract class CliException extends NlsRuntimeException
CliException
is thrown, if the commandline arguments are invalid for a specific main-program.Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
KEY_ANNOTATION, KEY_ARGUMENT, KEY_CAPACITY, KEY_CONTAINER, KEY_DEFAULT, KEY_DIRECTORY, KEY_ERROR, KEY_EXISTING, KEY_EXPECTED, KEY_FILE, KEY_FUNCTION, KEY_ID, KEY_KEY, KEY_LOCATION, KEY_MAX, KEY_MIN, KEY_MODE, KEY_NAME, KEY_OBJECT, KEY_OPERAND, KEY_OPERATION, KEY_OPTION, KEY_PATH, KEY_PROPERTY, KEY_QUERY, KEY_RESOURCE, KEY_SIZE, KEY_SOURCE, KEY_TARGET_TYPE, KEY_TITLE, KEY_TYPE, KEY_URI, KEY_USER, KEY_VALUE
Constructor and Description |
---|
CliException(NlsMessage message)
The constructor.
|
CliException(Throwable nested,
NlsMessage message)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
protected static NlsBundleUtilCliRoot |
createBundle() |
boolean |
isTechnical()
Determines if this is a technical exception.
|
createBundle, createCopy, createCopyViaClone, createUuid, getCode, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getMessage, getNlsMessage, getUuid, isForUser, printStackTrace, toNlsMessage, toString, toString, toString
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCause, getStackTrace
private static final long serialVersionUID
public CliException(NlsMessage message)
message
- the message
describing the problem briefly.public CliException(Throwable nested, NlsMessage message)
public boolean isTechnical()
NlsThrowable
displayed to the end-user
in such case. See
TechnicalErrorUserException
.message
is typically
intended for to end-users
and has to be easy to understand.NlsRuntimeException
.isTechnical
in interface NlsThrowable
isTechnical
in class NlsRuntimeException
true
if this is a technical exception, false
if this is a user error.NlsThrowable.isForUser()
protected static NlsBundleUtilCliRoot createBundle()
NlsBundleUtilCliRoot
.Copyright © 2001–2016 mmm-Team. All rights reserved.