com.pankia
Class PankiaNetError

java.lang.Object
  extended by com.pankia.PankiaNetError

public class PankiaNetError
extends java.lang.Object


Field Summary
 java.lang.String code
           
static int GAMESESSION_ERROR_FAILD_HOLEPUNCHING
           
static int GAMESESSION_ERROR_FAILD_P2P_CONNECTION
           
static int HTTP_ERROR_DISCONNECTED
           
static int HTTP_ERROR_FAILD
           
static int HTTP_ERROR_INVALID
           
static int HTTP_ERROR_TIMEOUT
           
 java.lang.String message
           
static PankiaNetError notLoginError
           
static int PEER_ERROR_DISCONNECTED
           
static int PEER_ERROR_REFUSED
           
static int PEER_ERROR_TIMEOUT
           
static int ROOM_ERROR_FAILD_ALREADY_DELETED
           
static int ROOM_ERROR_FAILD_ALREADY_STARTED
           
static int ROOM_ERROR_FAILD_CREATE
           
static int ROOM_ERROR_FAILD_INVITATION
           
static int ROOM_ERROR_FAILD_JOIN
           
static int ROOM_ERROR_FAILD_SYNC
           
static int ROOM_ERROR_FAILED_MEMBER_CHANGE
           
static int ROOM_ERROR_FAILED_NO_COINS
           
static int ROOM_ERROR_JOIN
           
static int SESSION_ERROR_INVALID_UDID
           
static PankiaNetError sessionLostError
           
static int STUN_NATCHECK_FAILD
           
static int STUN_NATCHECK_TIMEOUT
           
static int STUN_PUNCHING_FAILD
           
static int STUN_PUNCHING_RTT_OVER_RANGE
           
static int STUN_PUNCHING_TIMEOUT
           
 java.lang.String subcode
           
static int TCP_ERROR_ACCEPT
           
static int TCP_ERROR_ALREADY_CLOSED
           
static int TCP_ERROR_DISCONNECTED
           
static int TCP_ERROR_FAILD
           
static int TCP_ERROR_REFUSED
           
static int TCP_ERROR_TIMEOUT
           
 int type
           
static int UDP_ERROR_ALREADY_CLOSED
           
static int UDP_ERROR_ALREADY_OPENED
           
static int UDP_ERROR_FAILD
           
static int UDP_ERROR_UNKNOWN
           
 java.net.URI uri
           
 
Constructor Summary
PankiaNetError(java.net.URI uri, int errorType, JSONObject source)
           
PankiaNetError(java.net.URI uri, int errorType, java.lang.String code, java.lang.String subcode, java.lang.String detail)
           
 
Method Summary
 int getErrorMessage()
           
 int getErrorMessageForRegistration()
           
 int getErrorTitle()
           
static PankiaNetError getNotLoginError()
          ログインに失敗したPankiaNetErrorを返す codeにはnot_signed_inが入る
static PankiaNetError getSessionLostError()
          セッション維持に失敗したPankiaNetErrorを返す codeにはnot_signed_inが入る
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

HTTP_ERROR_FAILD

public static final int HTTP_ERROR_FAILD
See Also:
Constant Field Values

HTTP_ERROR_TIMEOUT

public static final int HTTP_ERROR_TIMEOUT
See Also:
Constant Field Values

HTTP_ERROR_INVALID

public static final int HTTP_ERROR_INVALID
See Also:
Constant Field Values

HTTP_ERROR_DISCONNECTED

public static final int HTTP_ERROR_DISCONNECTED
See Also:
Constant Field Values

TCP_ERROR_FAILD

public static final int TCP_ERROR_FAILD
See Also:
Constant Field Values

TCP_ERROR_TIMEOUT

public static final int TCP_ERROR_TIMEOUT
See Also:
Constant Field Values

TCP_ERROR_DISCONNECTED

public static final int TCP_ERROR_DISCONNECTED
See Also:
Constant Field Values

TCP_ERROR_ACCEPT

public static final int TCP_ERROR_ACCEPT
See Also:
Constant Field Values

TCP_ERROR_REFUSED

public static final int TCP_ERROR_REFUSED
See Also:
Constant Field Values

TCP_ERROR_ALREADY_CLOSED

public static final int TCP_ERROR_ALREADY_CLOSED
See Also:
Constant Field Values

PEER_ERROR_REFUSED

public static final int PEER_ERROR_REFUSED
See Also:
Constant Field Values

PEER_ERROR_TIMEOUT

public static final int PEER_ERROR_TIMEOUT
See Also:
Constant Field Values

PEER_ERROR_DISCONNECTED

public static final int PEER_ERROR_DISCONNECTED
See Also:
Constant Field Values

UDP_ERROR_FAILD

public static final int UDP_ERROR_FAILD
See Also:
Constant Field Values

UDP_ERROR_ALREADY_CLOSED

public static final int UDP_ERROR_ALREADY_CLOSED
See Also:
Constant Field Values

UDP_ERROR_UNKNOWN

public static final int UDP_ERROR_UNKNOWN
See Also:
Constant Field Values

UDP_ERROR_ALREADY_OPENED

public static final int UDP_ERROR_ALREADY_OPENED
See Also:
Constant Field Values

STUN_PUNCHING_FAILD

public static final int STUN_PUNCHING_FAILD
See Also:
Constant Field Values

STUN_PUNCHING_TIMEOUT

public static final int STUN_PUNCHING_TIMEOUT
See Also:
Constant Field Values

STUN_NATCHECK_FAILD

public static final int STUN_NATCHECK_FAILD
See Also:
Constant Field Values

STUN_NATCHECK_TIMEOUT

public static final int STUN_NATCHECK_TIMEOUT
See Also:
Constant Field Values

STUN_PUNCHING_RTT_OVER_RANGE

public static final int STUN_PUNCHING_RTT_OVER_RANGE
See Also:
Constant Field Values

ROOM_ERROR_JOIN

public static final int ROOM_ERROR_JOIN
See Also:
Constant Field Values

SESSION_ERROR_INVALID_UDID

public static final int SESSION_ERROR_INVALID_UDID
See Also:
Constant Field Values

ROOM_ERROR_FAILD_INVITATION

public static final int ROOM_ERROR_FAILD_INVITATION
See Also:
Constant Field Values

ROOM_ERROR_FAILD_CREATE

public static final int ROOM_ERROR_FAILD_CREATE
See Also:
Constant Field Values

ROOM_ERROR_FAILD_JOIN

public static final int ROOM_ERROR_FAILD_JOIN
See Also:
Constant Field Values

ROOM_ERROR_FAILD_ALREADY_DELETED

public static final int ROOM_ERROR_FAILD_ALREADY_DELETED
See Also:
Constant Field Values

ROOM_ERROR_FAILD_ALREADY_STARTED

public static final int ROOM_ERROR_FAILD_ALREADY_STARTED
See Also:
Constant Field Values

ROOM_ERROR_FAILD_SYNC

public static final int ROOM_ERROR_FAILD_SYNC
See Also:
Constant Field Values

ROOM_ERROR_FAILED_MEMBER_CHANGE

public static final int ROOM_ERROR_FAILED_MEMBER_CHANGE
See Also:
Constant Field Values

ROOM_ERROR_FAILED_NO_COINS

public static final int ROOM_ERROR_FAILED_NO_COINS
See Also:
Constant Field Values

GAMESESSION_ERROR_FAILD_HOLEPUNCHING

public static final int GAMESESSION_ERROR_FAILD_HOLEPUNCHING
See Also:
Constant Field Values

GAMESESSION_ERROR_FAILD_P2P_CONNECTION

public static final int GAMESESSION_ERROR_FAILD_P2P_CONNECTION
See Also:
Constant Field Values

notLoginError

public static final PankiaNetError notLoginError

sessionLostError

public static final PankiaNetError sessionLostError

uri

public final java.net.URI uri

type

public final int type

code

public final java.lang.String code

subcode

public final java.lang.String subcode

message

public final java.lang.String message
Constructor Detail

PankiaNetError

public PankiaNetError(java.net.URI uri,
                      int errorType,
                      JSONObject source)

PankiaNetError

public PankiaNetError(java.net.URI uri,
                      int errorType,
                      java.lang.String code,
                      java.lang.String subcode,
                      java.lang.String detail)
Method Detail

getNotLoginError

public static PankiaNetError getNotLoginError()
ログインに失敗したPankiaNetErrorを返す codeにはnot_signed_inが入る

Returns:

getSessionLostError

public static PankiaNetError getSessionLostError()
セッション維持に失敗したPankiaNetErrorを返す codeにはnot_signed_inが入る

Returns:

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getErrorTitle

public int getErrorTitle()

getErrorMessage

public int getErrorMessage()

getErrorMessageForRegistration

public int getErrorMessageForRegistration()