Samond Classes Library 1.1.6-RELEASE build 132

SCAbstractMethodException.h

Go to the documentation of this file.
00001 //
00002 //  SCAbstractMethodException.h
00003 //  scl
00004 //
00005 //  Created by Viacheslav Smolensky on 02.11.11.
00006 //  Copyright (c) 2007 - 2014 by Samond Development Corporation. All rights reserved.
00007 //
00008 
00016 #import <Foundation/Foundation.h>
00017 #import <scl/SCConstants.h>
00018 #import <scl/SCException.h>
00019 
00023 #define SCAbstractMethodExceptionClass @"SCAbstractMethodException"
00024 
00025 #pragma mark -
00026 #pragma mark Exception name constant
00027 
00028 #define SCAbstractMethodErrorName   @"SCAbstractMethod" ///< Name of exception
00029 
00030 #pragma mark -
00031 
00040 @interface SCAbstractMethodException : SCException {
00041         NSString *fMethodName;  // Abstract method name
00042 }
00043 #pragma mark -
00044 #pragma mark Class properties
00045 #if (__MAC_OS_X_VERSION_MIN_REQUIRED > 1040) || IOS_TARGET
00046 // Abstract method name property
00047 @property (nonatomic, retain, readonly, getter=methodName) NSString *methodName;
00048 #endif
00049 
00050 #pragma mark -
00051 #pragma mark Creating Abstract Method Exception
00052 
00057 + (SCAbstractMethodException *)exception;
00058 
00064 + (SCAbstractMethodException *)exceptionWithMethodName:(NSString *)name;
00065 
00071 + (SCAbstractMethodException *)exceptionWithReason:(NSString *)reason;
00072 
00073 #pragma mark -
00074 #pragma mark Initializing Abstract Method Exception
00075 
00080 - (id)init;
00081 
00087 - (id)initWithMethodName:(NSString *)name;
00088 
00094 - (id)initWithReason:(NSString *)reason;
00095 
00096 #pragma mark -
00097 #pragma mark Querying Exception Properties
00098 
00103 - (NSString *)methodName;
00104 
00105 @end
 All Classes Files Functions Typedefs Enumerations Enumerator Defines