-
public class GigyaError extends GigyaResponseModel
Main Gigya error representation class.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classGigyaError.Codes
-
Field Summary
Fields Modifier and Type Field Description private Stringdataprivate StringlocalizedMessage
-
Constructor Summary
Constructors Constructor Description GigyaError(int errorCode, String message)GigyaError(int errorCode, String localizedMessage, String callId)GigyaError(String rawJson, int errorCode, String localizedMessage, String callId)
-
Method Summary
Modifier and Type Method Description StringgetData()StringgetLocalizedMessage()static GigyaErrorgeneralError()static GigyaErrorerrorFrom(String message)static GigyaErrorunauthorizedUser()static GigyaErrorcancelledOperation()static GigyaErrorcancelledOperationWith(String message)static GigyaErrorfromResponse(GigyaApiResponse response)static GigyaErrorerrorFrom(Map<String, Object> errorEvent)StringtoString()intgetErrorCode()StringgetCallId()-
-
Method Detail
-
getLocalizedMessage
String getLocalizedMessage()
-
generalError
static GigyaError generalError()
-
errorFrom
static GigyaError errorFrom(String message)
-
unauthorizedUser
static GigyaError unauthorizedUser()
-
cancelledOperation
static GigyaError cancelledOperation()
-
cancelledOperationWith
static GigyaError cancelledOperationWith(String message)
-
fromResponse
static GigyaError fromResponse(GigyaApiResponse response)
-
errorFrom
static GigyaError errorFrom(Map<String, Object> errorEvent)
-
getErrorCode
int getErrorCode()
-
-
-
-