public class

LineApiError

extends Object
implements Parcelable
java.lang.Object
   ↳ com.linecorp.linesdk.LineApiError

Class Overview

Represents an error that is thrown by the Social API.

Summary

Nested Classes
enum LineApiError.ErrorCode Represents detail error reasons. 
[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public static final Creator<LineApiError> CREATOR
public static final LineApiError DEFAULT
Public Constructors
LineApiError(Exception e)
LineApiError(String message)
LineApiError(Exception e, LineApiError.ErrorCode errorCode)
LineApiError(int httpResponseCode, String message, LineApiError.ErrorCode errorCode)
Public Methods
static LineApiError createWithHttpResponseCode(int httpResponseCode, Exception e)
static LineApiError createWithHttpResponseCode(int httpResponseCode, String errorString)
LineApiError.ErrorCode getErrorCode()
Gets the error code associated with the API error.
int getHttpResponseCode()
Gets the response code associated with the API error.
String getMessage()
Gets the error message associated with the API error.
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Fields

public static final Creator<LineApiError> CREATOR

public static final LineApiError DEFAULT

Public Constructors

public LineApiError (Exception e)

public LineApiError (String message)

public LineApiError (Exception e, LineApiError.ErrorCode errorCode)

public LineApiError (int httpResponseCode, String message, LineApiError.ErrorCode errorCode)

Public Methods

public static LineApiError createWithHttpResponseCode (int httpResponseCode, Exception e)

public static LineApiError createWithHttpResponseCode (int httpResponseCode, String errorString)

public LineApiError.ErrorCode getErrorCode ()

Gets the error code associated with the API error.

Returns
  • The error code associated with the API error.

public int getHttpResponseCode ()

Gets the response code associated with the API error.

Returns
  • The HTTP response code.

public String getMessage ()

Gets the error message associated with the API error.

Returns
  • The error message associated with the API error.