エラー メッセージ
COM API では、次のエラー メッセージが使用されます。
- 接続エラー メッセージ:
- "Connection type not supported"
- "Client timeout"
- DataTable 作成時のエラー メッセージ:
- "Blank column name"
- "Duplicated column name"
- "The column index is invalid"
- Message Packaging 例外のエラー メッセージ:
- "Input Message is null"
- "Failed to connect to Server"
- "Failed to disconnect to Server"
- "Failed to open Http Connection"
- "Failed to get Service"
- "Failed to package the message using Serializer and Encoding"
例:
On Error GoTo ErrorHandler
Dim server As New G1CLIENTLib.server
server.setConnectionProperty server.HOST, "localhost"
server.setConnectionProperty server.Port, "8080"
'Making connection to the server
server.Connect
...
Exit Sub
ErrorHandler:
MsgBox Err.Description