public class RuntimeExceptionUserError extends RuntimeException
Contrary to other RuntimeException, RuntimeExceptionUserError are not meant to be unexpected and cause a stack trace to be logged. They are meant to allow reusing the exception mechanism of the language to report an expected condition.
It could be argued that in such a case a checked exception (not deriving from RuntimeException) should be used. But since these conditions are still expected to cause the tool to abort (after having displayed the message to the user), it is more convenient to remain faithful to the unchecked exception strategy.
| Constructor and Description |
|---|
RuntimeExceptionUserError(String message)
Constructor.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic RuntimeExceptionUserError(String message)
message - Message. The caller has to take care of localization, if required.Copyright © 2015–2016 AZYVA INC.. All rights reserved.