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
ConstructorsConstructorDescriptionDeprecated.SimpleErrorCollectionInternal(Iterable<String> errors) Deprecated.SimpleErrorCollectionInternal(String... errors) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Add a field-specific error message.voidDeprecated.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"voidaddErrorCollection(@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.voidaddErrorMessages(Collection<String> incomingMessages) Deprecated.Append new error messages to those already collected.voidaddFieldErrors(@NotNull Map<String, List<String>> errors) Deprecated.Append new field-specific errors to those already collected.booleanDeprecated.Deprecated.Get all non field-specific error messages.Deprecated.Get all field-specific errors.Deprecated.Deprecated.Get error messages, then get rid of them.intDeprecated.booleanDeprecated.Whether any errors (of any type - field-specific or otherwise) have been collected.inthashCode()Deprecated.voidsetErrorMessages(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, waitMethods 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:ErrorCollectionAdd a field-specific error message.- Specified by:
addErrorin interfaceErrorCollection- Parameters:
field- Field name, eg. "assignee"message- Error message.
-
addErrorMessage
Deprecated.Description copied from interface:ErrorCollectionAdd error message relating to system state (not field-specific).- Specified by:
addErrorMessagein interfaceErrorCollection- Parameters:
message- Error message.
-
getErrorMessages
Deprecated.Description copied from interface:ErrorCollectionGet all non field-specific error messages.- Specified by:
getErrorMessagesin interfaceErrorCollection- Returns:
- Collection of error Strings.
-
setErrorMessages
Deprecated.Description copied from interface:ErrorCollectionPopulate this ErrorCollection with a new set of messages (existing errors are lost).- Specified by:
setErrorMessagesin interfaceErrorCollection- Parameters:
errorMessages- List of error messageStrings.
-
getFlushedErrorMessages
Deprecated.Description copied from interface:ErrorCollectionGet error messages, then get rid of them.- Specified by:
getFlushedErrorMessagesin interfaceErrorCollection- Returns:
- The (now cleared) error messages.
-
getErrors
Deprecated.Description copied from interface:ErrorCollectionGet all field-specific errors.- Specified by:
getErrorsin interfaceErrorCollection- Returns:
- Map of String: String pairs, eg. {"assignee": "Assignee is required"}
-
addErrorCollection
Deprecated.Description copied from interface:ErrorCollectionPopulate this ErrorCollection with general and field-specific errors.- Specified by:
addErrorCollectionin interfaceErrorCollection- Parameters:
errors- ErrorCollection whose errors/messages we obtain.
-
addErrorMessages
Deprecated.Description copied from interface:ErrorCollectionAppend new error messages to those already collected.- Specified by:
addErrorMessagesin interfaceErrorCollection- Parameters:
incomingMessages- Collection of error strings.
-
addErrorMessage
Deprecated.- Specified by:
addErrorMessagein interfaceErrorCollection
-
addFieldErrors
Deprecated.Description copied from interface:ErrorCollectionAppend new field-specific errors to those already collected.- Specified by:
addFieldErrorsin interfaceErrorCollection- Parameters:
errors- AMapfromStringfield names, toStringerror messages, orCollections ofStringerror messages.
-
hasAnyErrors
public boolean hasAnyErrors()Deprecated.Description copied from interface:ErrorCollectionWhether any errors (of any type - field-specific or otherwise) have been collected.- Specified by:
hasAnyErrorsin interfaceErrorCollection- Returns:
trueif there are errors;falseotherwise.
-
getFieldErrors
Deprecated.- Specified by:
getFieldErrorsin interfaceErrorCollection
-
getTotalErrors
public int getTotalErrors()Deprecated.- Specified by:
getTotalErrorsin interfaceErrorCollection
-
toString
Deprecated. -
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
addError
Deprecated.Description copied from interface:ErrorCollectionAdds 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:
addErrorin 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
-
SimpleErrorCollectioninstead