Interface ProjectPersistErrors
-
- All Known Implementing Classes:
ProjectPersistErrorsImpl
public interface ProjectPersistErrors
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addError(SPersistentEntity entity, Throwable error)
Registers persisting error for specified entityvoid
addError(SProject project, File file, Throwable error)
Registers persisting error for file inside a projectvoid
addError(SProject project, String path, Throwable error)
Registers persisting error for file inside a projectvoid
clearAllErrors(SProject project)
Clears all persisting errors in the specified projectvoid
clearError(SPersistentEntity entity)
Clears persisting error for the specified entityvoid
clearError(SProject project, String path)
Clears persisting error for the given path in specified projectMap<SBuildType,Throwable>
getBuildTypeErrors()
Returns buildType config persisting errorsMap<SProject,Map<String,Throwable>>
getFileErrors()
Returns file persisting errors per projectMap<SProject,Throwable>
getProjectErrors()
Returns project config persisting errorsMap<BuildTypeTemplate,Throwable>
getTemplateErrors()
Returns template config persisting errorsMap<SVcsRoot,Throwable>
getVcsRootErrors()
Returns VCS root config persisting errorsboolean
hasErrors()
Returns true if any errors were reported
-
-
-
Method Detail
-
addError
void addError(@NotNull SPersistentEntity entity, @NotNull Throwable error)
Registers persisting error for specified entity- Parameters:
entity
- entity where persisting failederror
- error
-
addError
void addError(@NotNull SProject project, @NotNull String path, @NotNull Throwable error)
Registers persisting error for file inside a project- Parameters:
project
- project the file belongs topath
- path to file relative to project's configuration dir with '/' as a path separatorerror
- error
-
addError
void addError(@NotNull SProject project, @NotNull File file, @NotNull Throwable error)
Registers persisting error for file inside a project- Parameters:
project
- project the file belongs tofile
- file inside the project's direrror
- error
-
clearError
void clearError(@NotNull SPersistentEntity entity)
Clears persisting error for the specified entity- Parameters:
entity
- entity
-
clearError
void clearError(@NotNull SProject project, @NotNull String path)
Clears persisting error for the given path in specified project- Parameters:
project
- project the file belongs topath
- path to file relative to project's configuration dir
-
clearAllErrors
void clearAllErrors(@NotNull SProject project)
Clears all persisting errors in the specified project- Parameters:
project
- project of interest
-
getProjectErrors
@NotNull Map<SProject,Throwable> getProjectErrors()
Returns project config persisting errors- Returns:
- see above
-
getBuildTypeErrors
@NotNull Map<SBuildType,Throwable> getBuildTypeErrors()
Returns buildType config persisting errors- Returns:
- see above
-
getTemplateErrors
@NotNull Map<BuildTypeTemplate,Throwable> getTemplateErrors()
Returns template config persisting errors- Returns:
- see above
-
getVcsRootErrors
@NotNull Map<SVcsRoot,Throwable> getVcsRootErrors()
Returns VCS root config persisting errors- Returns:
- see above
-
getFileErrors
@NotNull Map<SProject,Map<String,Throwable>> getFileErrors()
Returns file persisting errors per project- Returns:
- see above
-
hasErrors
boolean hasErrors()
Returns true if any errors were reported- Returns:
- see above
-
-