Package com.contentful.java.cma.model
Class CMAHttpException.ErrorBody
- java.lang.Object
-
- com.contentful.java.cma.model.CMAHttpException.ErrorBody
-
- Enclosing class:
- CMAHttpException
public static class CMAHttpException.ErrorBody extends java.lang.ObjectError body potentially delivered with an error request.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCMAHttpException.ErrorBody.DetailsClass to describe the error details.static classCMAHttpException.ErrorBody.SysSystem properties of an error body
-
Constructor Summary
Constructors Constructor Description ErrorBody()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CMAHttpException.ErrorBody.DetailsgetDetails()java.lang.StringgetMessage()java.lang.StringgetRequestId()CMAHttpException.ErrorBody.SysgetSys()java.lang.StringtoString()
-
-
-
Method Detail
-
getSys
public CMAHttpException.ErrorBody.Sys getSys()
- Returns:
- the sys of this response, containing the error id.
-
getMessage
public java.lang.String getMessage()
- Returns:
- the message this error contained.
-
getRequestId
public java.lang.String getRequestId()
- Returns:
- the request id used to help the Contentful staff.
-
getDetails
public CMAHttpException.ErrorBody.Details getDetails()
- Returns:
- more information about the error.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- Returns:
- a human readable string, representing the object.
-
-