DDCliParseException Class Reference

List of all members.


Detailed Description

A option parsing exception.

This should cause the program to terminate with the given exit code.

Examples:

example.m.


Public Member Functions

(id) - initWithReason:exitCode:
 Create a new exception with a given reason and exit code.
(int) - exitCode
 Returns the desired exit code.

Static Public Member Functions

(DDCliParseException *) + parseExceptionWithReason:exitCode:
 Create a new exception with a given reason and exit code.

Member Function Documentation

+ (DDCliParseException *) parseExceptionWithReason: (NSString *)  reason
exitCode: (int)  exitCode 

Create a new exception with a given reason and exit code.

Parameters:
reason Reason for the exception
exitCode Desired exit code
Returns:
Autoreleased exception

- (id) initWithReason: (NSString *)  reason
exitCode: (int)  exitCode 

Create a new exception with a given reason and exit code.

Parameters:
reason Reason for the exception
exitCode Desired exit code
Returns:
New exception

- (int) exitCode  

Returns the desired exit code.

Returns:
The desired exit code


Generated by  doxygen