Samond Classes Library 1.1.6-RELEASE build 132

SCNotSupportedException.h

Go to the documentation of this file.
00001 //
00002 //  SCNotSupportedException.h
00003 //  scl
00004 //
00005 //  Created by Viacheslav Smolensky on 03.03.12.
00006 //  Copyright (c) 2007 - 2014 by Samond Development Corporation. All rights reserved.
00007 //
00008 
00016 #import <Foundation/Foundation.h>
00017 #import <scl/SCException.h>
00018 
00019 #pragma mark Exception supporting types
00020 
00025 #define SCNotSupportedExceptionClass @"SCNotSupportedException"
00026 
00031 enum _SCNotSupportedError {
00032     SCNotSupportedErrorUnspecified      = 0,    
00033     SCNotSupportedErrorCommand      = 1,    
00034     SCNotSupportedErrorOperation    = 2,    
00035     SCNotSupportedErrorCall         = 3,    
00036     SCNotSupportedErrorMethod       = 4,    
00037     SCNotSupportedErrorMessage      = 5,    
00038     SCNotSupportedErrorArgument     = 6,    
00039     SCNotSupportedErrorProcedure    = 7,    
00040     SCNotSupportedErrorFunction     = 8,    
00041     SCNotSupportedErrorObject       = 9     
00042 };
00043 
00049 typedef enum _SCNotSupportedError SCNotSupportedError;
00050 
00051 #pragma mark -
00052 #pragma mark Exception name constant
00053 
00054 #define SCNotSupportedErrorName @"SCNotSupported"   ///< Name of exception
00055 
00056 #pragma mark -
00057 
00076 @interface SCNotSupportedException : SCException {
00077     SCNotSupportedError fType;  // Exception type
00078     NSString *fCommand;         // Unsupported command name
00079     NSString *fOperation;       // Unsupported operation name
00080     NSString *fCall;            // Unsupported call name
00081     NSString *fMethod;          // Unsupported method name
00082     NSString *fMessage;         // Unsupported message name
00083     NSString *fArgument;        // Unsupported argument name;
00084     NSString *fProcedure;       // Unsupported procedure name;
00085     NSString *fFunction;        // Unsupported function name;
00086     NSString *fObject;          // Unsupported object name;
00087 }
00088 #pragma mark -
00089 #pragma mark Class properties
00090 #if (__MAC_OS_X_VERSION_MIN_REQUIRED > 1040) || IOS_TARGET
00091 // Exception type property
00092 @property (nonatomic, assign, readonly, getter=type) SCNotSupportedError type;
00093 // Unsupported command name property
00094 @property (nonatomic, retain, readonly, getter=command) NSString *command;
00095 // Unsupported operation name property
00096 @property (nonatomic, retain, readonly, getter=operation) NSString *operation;
00097 // Unsupported call name property
00098 @property (nonatomic, retain, readonly, getter=call) NSString *call;
00099 // Unsupported method name property
00100 @property (nonatomic, retain, readonly, getter=method) NSString *method;
00101 // Unsupported message name property
00102 @property (nonatomic, retain, readonly, getter=message) NSString *message;
00103 // Unsupported argument name property
00104 @property (nonatomic, retain, readonly, getter=argument) NSString *argument;
00105 // Unsupported procedure name property
00106 @property (nonatomic, retain, readonly, getter=procedure) NSString *procedure;
00107 // Unsupported function name property
00108 @property (nonatomic, retain, readonly, getter=function) NSString *function;
00109 // Unsupported object name property
00110 @property (nonatomic, retain, readonly, getter=object) NSString *object;
00111 #endif
00112 
00113 #pragma mark -
00114 #pragma mark Creating and Initializing Generic Not Supported Exception
00115 
00120 + (SCNotSupportedException *)exception;
00121 
00128 + (SCNotSupportedException *)exceptionWithType:(SCNotSupportedError)type reason:(NSString *)reason;
00129 
00135 + (SCNotSupportedException *)exceptionWithType:(SCNotSupportedError)type;
00136 
00142 + (SCNotSupportedException *)exceptionWithReason:(NSString *)reason;
00143 
00148 - (id)init;
00149 
00156 - (id)initWithType:(SCNotSupportedError)type reason:(NSString *)reason;
00157 
00163 - (id)initWithType:(SCNotSupportedError)type;
00164 
00170 - (id)initWithReason:(NSString *)reason;
00171 
00172 #pragma mark -
00173 #pragma mark Creating and Initializing Unsupported Command Exception
00174 
00182 + (SCNotSupportedException *)exceptionWithCommand:(NSString *)command reason:(NSString *)reason;
00183 
00189 + (SCNotSupportedException *)exceptionWithCommand:(NSString *)command;
00190 
00197 - (id)initWithCommand:(NSString *)command reason:(NSString *)reason;
00198 
00204 - (id)initWithCommand:(NSString *)command;
00205 
00206 #pragma mark -
00207 #pragma mark Creating and Initializing Unsupported Operation Exception
00208 
00216 + (SCNotSupportedException *)exceptionWithOperation:(NSString *)operation reason:(NSString *)reason;
00217 
00223 + (SCNotSupportedException *)exceptionWithOperation:(NSString *)operation;
00224 
00231 - (id)initWithOperation:(NSString *)operation reason:(NSString *)reason;
00232 
00238 - (id)initWithOperation:(NSString *)operation;
00239 
00240 #pragma mark -
00241 #pragma mark Creating and Initializing Unsupported Call Exception
00242 
00249 + (SCNotSupportedException *)exceptionWithCall:(NSString *)call reason:(NSString *)reason;
00250 
00256 + (SCNotSupportedException *)exceptionWithCall:(NSString *)call;
00257 
00264 - (id)initWithCall:(NSString *)call reason:(NSString *)reason;
00265 
00271 - (id)initWithCall:(NSString *)call;
00272 
00273 #pragma mark -
00274 #pragma mark Creating and Initializing Unsupported Method Exception
00275 
00282 + (SCNotSupportedException *)exceptionWithMethod:(NSString *)method reason:(NSString *)reason;
00283 
00289 + (SCNotSupportedException *)exceptionWithMethod:(NSString *)method;
00290 
00297 - (id)initWithMethod:(NSString *)method reason:(NSString *)reason;
00298 
00304 - (id)initWithMethod:(NSString *)method;
00305 
00306 #pragma mark -
00307 #pragma mark Creating and Initializing Unsupported Message Exception
00308 
00315 + (SCNotSupportedException *)exceptionWithMessage:(NSString *)message reason:(NSString *)reason;
00316 
00322 + (SCNotSupportedException *)exceptionWithMessage:(NSString *)message;
00323 
00330 - (id)initWithMessage:(NSString *)message reason:(NSString *)reason;
00331 
00337 - (id)initWithMessage:(NSString *)message;
00338 
00339 #pragma mark -
00340 #pragma mark Creating and Initializing Unsupported Argument Exception
00341 
00349 + (SCNotSupportedException *)exceptionWithArgument:(NSString *)argument reason:(NSString *)reason;
00350 
00356 + (SCNotSupportedException *)exceptionWithArgument:(NSString *)argument;
00357 
00364 - (id)initWithArgument:(NSString *)argument reason:(NSString *)reason;
00365 
00371 - (id)initWithArgument:(NSString *)argument;
00372 
00373 #pragma mark -
00374 #pragma mark Creating and Initializing Unsupported Procedure Exception
00375 
00383 + (SCNotSupportedException *)exceptionWithProcedure:(NSString *)procedure reason:(NSString *)reason;
00384 
00390 + (SCNotSupportedException *)exceptionWithProcedure:(NSString *)procedure;
00391 
00398 - (id)initWithProcedure:(NSString *)procedure reason:(NSString *)reason;
00399 
00405 - (id)initWithProcedure:(NSString *)procedure;
00406 
00407 #pragma mark -
00408 #pragma mark Creating and Initializing Unsupported Function Exception
00409 
00417 + (SCNotSupportedException *)exceptionWithFunction:(NSString *)function reason:(NSString *)reason;
00418 
00424 + (SCNotSupportedException *)exceptionWithFunction:(NSString *)function;
00425 
00432 - (id)initWithFunction:(NSString *)function reason:(NSString *)reason;
00433 
00439 - (id)initWithFunction:(NSString *)function;
00440 
00441 #pragma mark -
00442 #pragma mark Creating and Initializing Unsupported Object Exception
00443 
00450 + (SCNotSupportedException *)exceptionWithObject:(NSString *)object reason:(NSString *)reason;
00451 
00457 + (SCNotSupportedException *)exceptionWithObject:(NSString *)object;
00458 
00465 - (id)initWithObject:(NSString *)object reason:(NSString *)reason;
00466 
00472 - (id)initWithObject:(NSString *)object;
00473 
00474 #pragma mark -
00475 #pragma mark Querying Exception Properties
00476 
00481 - (SCNotSupportedError)type;
00482 
00487 - (NSString *)command;
00488 
00493 - (NSString *)operation;
00494 
00499 - (NSString *)call;
00500 
00505 - (NSString *)method;
00506 
00511 - (NSString *)message;
00512 
00517 - (NSString *)argument;
00518 
00523 - (NSString *)procedure;
00524 
00529 - (NSString *)function;
00530 
00535 - (NSString *)object;
00536 
00537 @end
 All Classes Files Functions Typedefs Enumerations Enumerator Defines