Package games.stendhal.common
Class ErrorBuffer
java.lang.Object
games.stendhal.common.ErrorBuffer
- All Implemented Interfaces:
ErrorDrain
- Direct Known Subclasses:
ConversationParser,Sentence
ErrorBuffer stores and concatenates multiple error messages.
- Author:
- Martin Fuchs
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the concatenated error message.booleanhasError()Return whether some error has been registered.voidStore error message.
-
Field Details
-
errorBuffer
buffer for error messages
-
-
Constructor Details
-
ErrorBuffer
public ErrorBuffer()
-
-
Method Details
-
setError
Store error message.- Specified by:
setErrorin interfaceErrorDrain- Parameters:
error- message
-
hasError
public boolean hasError()Return whether some error has been registered.- Specified by:
hasErrorin interfaceErrorDrain- Returns:
- error flag
-
getErrorString
Return the concatenated error message.- Specified by:
getErrorStringin interfaceErrorDrain- Returns:
- error string
-