Package org.kohsuke.github
Class GHIOException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- org.kohsuke.github.GHIOException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
GHOTPRequiredException,HttpException
public class GHIOException extends IOException
Request/response contains useful metadata. Custom exception allows store info for next diagnostics.- Author:
- Kanstantsin Shautsou
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,List<String>>responseHeaderFieldsThe response header fields.
-
Constructor Summary
Constructors Constructor Description GHIOException()Instantiates a new Ghio exception.GHIOException(String message)Instantiates a new Ghio exception.GHIOException(String message, Throwable cause)Constructs aGHIOExceptionwith the specified detail message and cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,List<String>>getResponseHeaderFields()Gets response header fields.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
GHIOException
public GHIOException()
Instantiates a new Ghio exception.
-
GHIOException
public GHIOException(String message)
Instantiates a new Ghio exception.- Parameters:
message- the message
-
GHIOException
public GHIOException(String message, Throwable cause)
Constructs aGHIOExceptionwith the specified detail message and cause.- Parameters:
message- The detail message (which is saved for later retrieval by theThrowable.getMessage()method)cause- The cause (which is saved for later retrieval by theThrowable.getCause()method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
-
-
Method Detail
-
getResponseHeaderFields
@CheckForNull public Map<String,List<String>> getResponseHeaderFields()
Gets response header fields.- Returns:
- the response header fields
-
-