TGMDK_ErrorMessage
in package
TGMDK_ErrorMessage 管理クラス
エラーメッセージを取得し管理するクラス
Tags
Table of Contents
- UNKNOWN = "-01"
- エラー文字列が見つからない場合に返す文字列
- ERROR_MESSAGE_PROPERTIES = "[ApplicationError] MA01 = Section << #1 >>, Key - #2 : missing in the Config file MA02 = Section << #1 >>, Key - #2 : value #3 in the Config file is not correct MA03 = Section << #1 >>, Key - #2 : file does not exist at #3 MA04 = Message body encryption error MA05 = #1 file does not exist as #2. MA07 = The DTO value of << #1 >> is invalid type. < ex. is not String > MA99 = System internal error [ConfigError] MB01 = Not found the Config file #1 MB02 = Could not read the Config file MB03 = SSLSocketFactory creation failed MB99 = System internal error [ConnectionError] MF01 = Could not connect socket to the Proxy Server MF02 = Could not connect socket to the GW Server MF03 = Connection to server timed out MF05 = 500 Internal Server Error MF06 = 502 Bad Gateway MF07 = 503 Service Unavailable MF99 = System internal error"
- $m_error : mixed
- エラー情報を保持する変数
- $m_msg : mixed
- エラーメッセージを保持する変数
- __reset() : mixed
- 静的なインスタンスを破棄する(単体テスト用)
- getInstance() : TGMDK_ErrorMessage|null
- TGMDK_ErrorMessageクラスの静的なインスタンスを取得する
- getMessage() : mixed|string
- エラーメッセージを取得する
- __construct() : mixed
- コンストラクタ。
Constants
UNKNOWN
エラー文字列が見つからない場合に返す文字列
public
mixed
UNKNOWN
= "-01"
ERROR_MESSAGE_PROPERTIES
private
mixed
ERROR_MESSAGE_PROPERTIES
= "[ApplicationError]
MA01 = Section << #1 >>, Key - #2 : missing in the Config file
MA02 = Section << #1 >>, Key - #2 : value #3 in the Config file is not correct
MA03 = Section << #1 >>, Key - #2 : file does not exist at #3
MA04 = Message body encryption error
MA05 = #1 file does not exist as #2.
MA07 = The DTO value of << #1 >> is invalid type. < ex. is not String >
MA99 = System internal error
[ConfigError]
MB01 = Not found the Config file #1
MB02 = Could not read the Config file
MB03 = SSLSocketFactory creation failed
MB99 = System internal error
[ConnectionError]
MF01 = Could not connect socket to the Proxy Server
MF02 = Could not connect socket to the GW Server
MF03 = Connection to server timed out
MF05 = 500 Internal Server Error
MF06 = 502 Bad Gateway
MF07 = 503 Service Unavailable
MF99 = System internal error"
Properties
$m_error
エラー情報を保持する変数
private
static mixed
$m_error
= null
$m_msg
エラーメッセージを保持する変数
private
mixed
$m_msg
Methods
__reset()
静的なインスタンスを破棄する(単体テスト用)
public
static __reset() : mixed
Tags
Return values
mixed —getInstance()
TGMDK_ErrorMessageクラスの静的なインスタンスを取得する
public
static getInstance() : TGMDK_ErrorMessage|null
Tags
Return values
TGMDK_ErrorMessage|null —TGMDK_ErrorMessageクラスのインスタンス
getMessage()
エラーメッセージを取得する
public
getMessage(mixed $messageId) : mixed|string
Parameters
- $messageId : mixed
-
メッセージID
Tags
Return values
mixed|string —取得したメッセージ
__construct()
コンストラクタ。
private
__construct() : mixed