BLUE DRAGON PHP SDK
All Classes Functions Variables Pages
common.php
1 <?php
2 /***************************************************************************************************************************/
25 define('_ERR_INVALID_SERVER_URI__', 1); // This means that the server pointed to by the SDK URI is somehow invalid.
26 define('_ERR_INVALID_LOGIN__', 2); // This means that the login/password combination sent to the server was not recognized.
27 define('_ERR_INVALID_AUTHENTICATION__', 3); // This means that the authentication sent to the server was not valid.
28 define('_ERR_NOT_AUTHORIZED__', 4); // This means that the attempted operations was not permitted.
29 define('_ERR_NO_RESULTS__', 5); // The last operation had no results, and results were expected.
30 define('_ERR_PREV_LOGIN__', 6); // There is a current login, so you cannot attempt a new login.
31 define('_ERR_COMM_ERR__', 7); // There was some kind of communication error with the server.
32 define('_ERR_INTERNAL_ERR__', 8); // There was some kind of internal program error.
33 define('_ERR_NOT_LOGGED_IN__', 9); // A Logout Attempt Was Made Where No Login Was Present.
34 define('_ERR_INVALID_PARAMETERS__', 10); // The parameters provided to a method were incorrect or out of bounds.
35 define('_ERR_LOGIN_HAS_USER__', 11); // This means that an attempt to add a login to another user failed, because the login still has a different user associated.
36 define('_ERR_INVALID_LOGIN_ID__', 12); // An invalid login was provided when attempting to create a new login.
37 
38 /****************************************************************************************************************************/
44 abstract class A_RVP_Locale {
45  /***********************/
49  abstract protected static function _get_default_error_message();
50 
51  /***********************/
55  abstract protected static function _get_error_table();
56 
57  /***********************/
61  static function get_error_message( $in_code
62  ) {
63  $key = "message_$in_code";
64  $ret = static::_get_default_error_message();
65  $table = static::_get_error_table();
66 
67  if (isset($table[$key]) && $table[$key]) {
68  $ret = $table[$key];
69  }
70 
71  return $ret;
72  }
73 }
74 ?>
static _get_default_error_message()
static get_error_message( $in_code)
Definition: common.php:61
static _get_error_table()