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

[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(int httpResponseCode, Exception e)
LineApiError(int httpResponseCode, String message)
Public Methods
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 (int httpResponseCode, Exception e)

public LineApiError (int httpResponseCode, String message)

Public Methods

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.