Package eu.bandm.tools.message
Class PreMessage
java.lang.Object
eu.bandm.tools.message.PreMessage
Represent the result of a test, for parameter validity or sim.
In case of a failure, it contains the error text and its parameters for
constructing an error message.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<D> @Opt SimpleMessage<D>
Convert to an error message with given location.<D> @Opt SimpleMessage<D>
asSimpleMessage
(Message.Kind kind, int level, @Opt Location<D> location) Convert to a message with given kind, level, and location.<D> @Opt SimpleMessage<D>
Convert to a warning message with given location.<D> @Opt SimpleMessage<D>
Convert to a warning message with given location and verbosity level.explode()
Throws an exception carrying this message, iff not OKay.<D> @Opt RuntimeException
Throws an exception carrying this message, iff not OKay.boolean
isOkay()
EvidenttoString()
-
Field Details
-
text
-
args
-
OKAY
Evident
-
-
Constructor Details
-
PreMessage
Evident
-
-
Method Details
-
isOkay
public boolean isOkay()Evident -
asError
Convert to an error message with given location. -
asWarning
Convert to a warning message with given location. -
asWarning
Convert to a warning message with given location and verbosity level. -
asSimpleMessage
@Opt public <D> @Opt SimpleMessage<D> asSimpleMessage(Message.Kind kind, int level, @Opt @Opt Location<D> location) Convert to a message with given kind, level, and location. -
toString
-
explode
Throws an exception carrying this message, iff not OKay.- Returns:
- null iff the PreMessage does not reflect an error condiiton.
-
explode
Throws an exception carrying this message, iff not OKay.- Returns:
- null iff the PreMessage does not reflect an error condiiton.
-