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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn the concatenated error message.boolean
hasError()
Return whether some error has been registered.void
Store error message.
-
Field Details
-
errorBuffer
buffer for error messages
-
-
Constructor Details
-
ErrorBuffer
public ErrorBuffer()
-
-
Method Details
-
setError
Store error message.- Specified by:
setError
in interfaceErrorDrain
- Parameters:
error
- message
-
hasError
public boolean hasError()Return whether some error has been registered.- Specified by:
hasError
in interfaceErrorDrain
- Returns:
- error flag
-
getErrorString
Return the concatenated error message.- Specified by:
getErrorString
in interfaceErrorDrain
- Returns:
- error string
-