CPErrorToken Class Reference
Inherits from | CPToken : NSObject |
Declared in | CPErrorToken.h CPErrorToken.m |
Overview
The CPErrorToken class reperesents an error during tokenisation.
These tokens return @"Error"
as their name. They may carry an error message with them.
Tasks
Other Methods
-
errorMessage
The error message generated when the tokeniser failed.
property -
+ errorWithMessage:
Creates and initializes a new CPErrorToken with a given message.
-
– initWithMesage:
Returns a CPErrorToken initialized with a given message.
Other Methods
-
– name
The token name.
Class Methods
errorWithMessage:
Creates and initializes a new CPErrorToken with a given message.
+ (id)errorWithMessage:(NSString *)errorMessage
Parameters
- errorMessage
The message for the error.
Return Value
A CPErrorToken with the message.
Discussion
Creates and initializes a new CPErrorToken with a given message.
Declared In
CPErrorToken.h
Instance Methods
initWithMesage:
Returns a CPErrorToken initialized with a given message.
- (id)initWithMesage:(NSString *)errorMessage
Parameters
- errorMessage
The message for the error.
Return Value
A CPErrorToken with the message.
Discussion
Returns a CPErrorToken initialized with a given message.
Declared In
CPErrorToken.h