Package com.atlassian.bamboo.utils.error
Class SimpleErrorCollectionInternal
java.lang.Object
com.atlassian.bamboo.utils.error.SimpleErrorCollectionInternal
- All Implemented Interfaces:
ErrorCollection
,Serializable
- Direct Known Subclasses:
SimpleErrorCollection
Deprecated.
- See Also:
-
Constructor Summary
ConstructorDescriptionDeprecated.SimpleErrorCollectionInternal
(Iterable<String> errors) Deprecated.SimpleErrorCollectionInternal
(String... errors) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.Add a field-specific error message.void
Deprecated.Adds a new form validation error with a given prefix.void
addErrorCollection
(@NotNull ErrorCollection errors) Deprecated.Populate this ErrorCollection with general and field-specific errors.addErrorMessage
(String message) Deprecated.Add error message relating to system state (not field-specific).addErrorMessage
(String message, Exception e) Deprecated.void
addErrorMessages
(Collection<String> incomingMessages) Deprecated.Append new error messages to those already collected.void
Deprecated.Append new field-specific errors to those already collected.void
addFieldErrors
(@NotNull Map<String, List<String>> errors) Deprecated.Append new field-specific errors to those already collected.boolean
Deprecated.Deprecated.Get all non field-specific error messages.Deprecated.Get all field-specific errors.Deprecated.Deprecated.Get error messages, then get rid of them.int
Deprecated.boolean
Deprecated.Whether any errors (of any type - field-specific or otherwise) have been collected.int
hashCode()
Deprecated.void
setErrorMessages
(Collection<String> errorMessages) Deprecated.Populate this ErrorCollection with a new set of messages (existing errors are lost).toString()
Deprecated.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.atlassian.bamboo.utils.error.ErrorCollection
getAllErrorMessages
-
Constructor Details
-
SimpleErrorCollectionInternal
public SimpleErrorCollectionInternal()Deprecated. -
SimpleErrorCollectionInternal
Deprecated. -
SimpleErrorCollectionInternal
Deprecated.
-
-
Method Details
-
addError
Deprecated.Description copied from interface:ErrorCollection
Add a field-specific error message.- Specified by:
addError
in interfaceErrorCollection
- Parameters:
field
- Field name, eg. "assignee"message
- Error message.
-
addErrorMessage
Deprecated.Description copied from interface:ErrorCollection
Add error message relating to system state (not field-specific).- Specified by:
addErrorMessage
in interfaceErrorCollection
- Parameters:
message
- Error message.
-
getErrorMessages
Deprecated.Description copied from interface:ErrorCollection
Get all non field-specific error messages.- Specified by:
getErrorMessages
in interfaceErrorCollection
- Returns:
- Collection of error Strings.
-
setErrorMessages
Deprecated.Description copied from interface:ErrorCollection
Populate this ErrorCollection with a new set of messages (existing errors are lost).- Specified by:
setErrorMessages
in interfaceErrorCollection
- Parameters:
errorMessages
- List of error messageString
s.
-
getFlushedErrorMessages
Deprecated.Description copied from interface:ErrorCollection
Get error messages, then get rid of them.- Specified by:
getFlushedErrorMessages
in interfaceErrorCollection
- Returns:
- The (now cleared) error messages.
-
getErrors
Deprecated.Description copied from interface:ErrorCollection
Get all field-specific errors.- Specified by:
getErrors
in interfaceErrorCollection
- Returns:
- Map of String: String pairs, eg. {"assignee": "Assignee is required"}
-
addErrorCollection
Deprecated.Description copied from interface:ErrorCollection
Populate this ErrorCollection with general and field-specific errors.- Specified by:
addErrorCollection
in interfaceErrorCollection
- Parameters:
errors
- ErrorCollection whose errors/messages we obtain.
-
addErrorMessages
Deprecated.Description copied from interface:ErrorCollection
Append new error messages to those already collected.- Specified by:
addErrorMessages
in interfaceErrorCollection
- Parameters:
incomingMessages
- Collection of error strings.
-
addErrorMessage
Deprecated.- Specified by:
addErrorMessage
in interfaceErrorCollection
-
addErrors
Deprecated.Description copied from interface:ErrorCollection
Append new field-specific errors to those already collected.- Specified by:
addErrors
in interfaceErrorCollection
- Parameters:
incomingErrors
- AMap
fromString
field names, toString
error messages, orCollection
s ofString
error messages.
-
addFieldErrors
Deprecated.Description copied from interface:ErrorCollection
Append new field-specific errors to those already collected.- Specified by:
addFieldErrors
in interfaceErrorCollection
- Parameters:
errors
- AMap
fromString
field names, toString
error messages, orCollection
s ofString
error messages.
-
hasAnyErrors
public boolean hasAnyErrors()Deprecated.Description copied from interface:ErrorCollection
Whether any errors (of any type - field-specific or otherwise) have been collected.- Specified by:
hasAnyErrors
in interfaceErrorCollection
- Returns:
true
if there are errors;false
otherwise.
-
getFieldErrors
Deprecated.- Specified by:
getFieldErrors
in interfaceErrorCollection
-
getTotalErrors
public int getTotalErrors()Deprecated.- Specified by:
getTotalErrors
in interfaceErrorCollection
-
toString
Deprecated. -
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
addError
Deprecated.Description copied from interface:ErrorCollection
Adds a new form validation error with a given prefix. ie. prefix of "builder.ant" and field "target" will result in a key of "builder.ant.target"- Specified by:
addError
in interfaceErrorCollection
- Parameters:
prefix
- The prefix of the field in . formfield
- The id of the form element in errormessage
- The error message to display to the user
-
SimpleErrorCollection
instead