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

Other Methods

Properties

errorMessage

The error message generated when the tokeniser failed.

@property (readwrite, copy) NSString *errorMessage

Discussion

The error message generated when the tokeniser failed.

Declared In

CPErrorToken.h

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

name

The token name.

- (NSString *)name

Discussion

The token name.

Declared In

CPToken.h