Appspresso Plugin API - iOS
AxError Class Reference

#import <AxError.h>

Public Member Functions

(id) - initWithCode:message:cause:
(NSString *) - message
(NSException *) - cause

Static Public Member Functions

(int) + toErrorCode:
(AxError *) + errorWithCode:message:cause:

Detailed Description

This class represents an plugin method execution error for appspresso runtime. All predefined errors are based-on DeviceAPIError in Waikiki API.
When you need custom error codes, Do *NOT* use magic number like this: throw new AxError(123);
Do use toErrorCode(String) to generate an unqiue error code: private static final int CUSTOM_ERR = AxError.toErrorCode("Custom Error"); ... throw new AxError(CUSTOM_ERR);
NOTE: Do *NOT* throw this exception out-of a plugin context.

Author:
iolo

Member Function Documentation

+ (int) toErrorCode: (NSString*)  errorId

사용자 정의 에러를 위한 유일한 에러 코드 생성.

 All Data Structures Functions