Class JenkinsFallbacks
- java.lang.Object
-
- com.cdancy.jenkins.rest.fallbacks.JenkinsFallbacks
-
public final class JenkinsFallbacks extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJenkinsFallbacks.CrumbOnErrorstatic classJenkinsFallbacks.IntegerResponseOnErrorstatic classJenkinsFallbacks.JENKINS_21311static classJenkinsFallbacks.PluginsOnErrorstatic classJenkinsFallbacks.RequestStatusOnErrorstatic classJenkinsFallbacks.SystemInfoOnError
-
Constructor Summary
Constructors Constructor Description JenkinsFallbacks()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SystemInfocreateSystemInfoFromErrors(List<Error> errors)static List<Error>getErrors(Exception output)Parse list of Error's from generic Exception.static List<Error>getErrors(Throwable output)Parse list of Error's from output.
-
-
-
Method Detail
-
createSystemInfoFromErrors
public static SystemInfo createSystemInfoFromErrors(List<Error> errors)
-
getErrors
public static List<Error> getErrors(Exception output)
Parse list of Error's from generic Exception.- Parameters:
output- Exception containing error data- Returns:
- List of culled Error's
-
-