Class CriticalErrorsImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.CriticalErrorsImpl
-
- All Implemented Interfaces:
CriticalErrors,ErrorsCollection
public class CriticalErrorsImpl extends Object implements CriticalErrors
-
-
Constructor Summary
Constructors Constructor Description CriticalErrorsImpl(ServerPaths serverPaths)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearError(String key)Removes error with specified keyvoidclearErrors()Clears all of the errorsbooleancontainsError(String key)Returns true if an error with specified key existsStringgetError(String key)Collection<String>getErrorKeys()Returns all error keys.Collection<String>getErrors()Returns collection of the error messagesbooleanhasErrors()Returnstrueif and only if there is any error.voidputError(String key, String message)Adds a new error and logs it to a log gile with warning log levelvoidputError(String key, String message, boolean logMessage)Adds a new errorStringtoString()
-
-
-
Constructor Detail
-
CriticalErrorsImpl
public CriticalErrorsImpl(@NotNull ServerPaths serverPaths)
-
-
Method Detail
-
putError
public void putError(@NotNull String key, @NotNull String message)Description copied from interface:CriticalErrorsAdds a new error and logs it to a log gile with warning log level- Specified by:
putErrorin interfaceCriticalErrors- Parameters:
key- error keymessage- error message
-
putError
public void putError(@NotNull String key, @NotNull String message, boolean logMessage)Description copied from interface:CriticalErrorsAdds a new error- Specified by:
putErrorin interfaceCriticalErrors- Parameters:
key- error keymessage- error messagelogMessage- if true then the log will be logged to a log file with warning log level
-
containsError
public boolean containsError(@NotNull String key)Description copied from interface:CriticalErrorsReturns true if an error with specified key exists- Specified by:
containsErrorin interfaceCriticalErrors- Parameters:
key- key of the error- Returns:
- true if error exists
-
clearError
public void clearError(@NotNull String key)Description copied from interface:CriticalErrorsRemoves error with specified key- Specified by:
clearErrorin interfaceCriticalErrors- Parameters:
key- key of the error
-
clearErrors
public void clearErrors()
Description copied from interface:CriticalErrorsClears all of the errors- Specified by:
clearErrorsin interfaceCriticalErrors
-
hasErrors
public boolean hasErrors()
Description copied from interface:CriticalErrorsReturnstrueif and only if there is any error.- Specified by:
hasErrorsin interfaceCriticalErrors
-
getErrorKeys
@NotNull public Collection<String> getErrorKeys()
Description copied from interface:CriticalErrorsReturns all error keys.- Specified by:
getErrorKeysin interfaceCriticalErrors- Returns:
- see above
-
getError
@Nullable public String getError(@NotNull String key)
- Specified by:
getErrorin interfaceCriticalErrors- Parameters:
key- particular key to look for- Returns:
- error message for specified key
-
getErrors
@NotNull public Collection<String> getErrors()
Description copied from interface:ErrorsCollectionReturns collection of the error messages- Specified by:
getErrorsin interfaceErrorsCollection- Returns:
- collection of the error messages
-
-