jetbrains.buildServer.serverSide
Interface CriticalErrors

All Superinterfaces:
ErrorsCollection

public interface CriticalErrors
extends ErrorsCollection

Maintains list of critical errors that must be shown on every page.

Since:
3.0

Method Summary
 void clearError(java.lang.String key)
          Removes error with specified key
 void clearErrors()
          Clears all of the errors
 boolean containsError(java.lang.String key)
          Returns true if an error with specified key exists
 java.lang.String getError(java.lang.String key)
           
 java.util.Collection<java.lang.String> getErrorKeys()
          Returns all error keys.
 void putError(java.lang.String key, java.lang.String message)
          Adds a new error
 
Methods inherited from interface jetbrains.buildServer.serverSide.ErrorsCollection
getErrors
 

Method Detail

putError

void putError(@NotNull
              java.lang.String key,
              @NotNull
              java.lang.String message)
Adds a new error

Parameters:
key - error key
message - error message
Since:
3.0

containsError

boolean containsError(@NotNull
                      java.lang.String key)
Returns true if an error with specified key exists

Parameters:
key - key of the error
Returns:
true if error exists
Since:
3.0

clearError

void clearError(@NotNull
                java.lang.String key)
Removes error with specified key

Parameters:
key - key of the error
Since:
3.0

clearErrors

void clearErrors()
Clears all of the errors

Since:
3.0

getErrorKeys

java.util.Collection<java.lang.String> getErrorKeys()
Returns all error keys.

Returns:
see above
Since:
3.0

getError

@Nullable
java.lang.String getError(@NotNull
                                   java.lang.String key)
Parameters:
key -
Returns:
error message for specified key