Class SDKError
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.styra.opa.openapi.models.errors.SDKError
-
- All Implemented Interfaces:
java.io.Serializable
public class SDKError extends java.lang.Exception
Thrown by a service call when an error response occurs. Contains details about the response.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SDKError(java.net.http.HttpResponse<java.io.InputStream> rawResponse, int code, java.lang.String message, byte[] body)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
body()
int
code()
boolean
equals(java.lang.Object o)
int
hashCode()
java.lang.String
message()
java.net.http.HttpResponse<java.io.InputStream>
rawResponse()
java.lang.String
toString()
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Throwable
-
rawResponse
public java.net.http.HttpResponse<java.io.InputStream> rawResponse()
-
code
public int code()
-
message
public java.lang.String message()
-
body
public byte[] body()
-
-