Samond Classes Library 1.1.6-RELEASE build 132

SCReadOnlyException.h

Go to the documentation of this file.
00001 //
00002 //  SCReadOnlyException.h
00003 //  scl
00004 //
00005 //  Created by Viacheslav Smolensky on 12.10.11.
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 #define SCReadOnlyExceptionClass @"SCReadOnlyException" ///< SCReadOnlyException class name
00020 
00021 #pragma mark -
00022 #pragma mark Exception name constants
00023 
00024 #define SCReadOnlyErrorName @"SCReadOnly"   ///< Exception name
00025 
00026 #pragma mark -
00027 
00033 @interface SCReadOnlyException : SCException {
00034     NSString *fReadOnlyData;    // Read only data
00035 }
00036 #pragma mark -
00037 #pragma mark Class properties
00038 #if (__MAC_OS_X_VERSION_MIN_REQUIRED > 1040) || IOS_TARGET
00039 // Read only data property
00040 @property (nonatomic, retain, readonly, getter=readOnlyData) NSString *readOnlyData;
00041 #endif
00042 
00043 #pragma mark -
00044 #pragma mark Creating Read Only Exception
00045 
00050 + (SCReadOnlyException *)exception;
00051 
00057 + (SCReadOnlyException *)exceptionWithReason:(NSString *)reason;
00058 
00064 + (SCReadOnlyException *)exceptionWithReadOnlyData:(NSString *)data;
00065 
00066 #pragma mark -
00067 #pragma mark Initializing Read Only Exception
00068 
00073 - (id)init;
00074 
00080 - (id)initWithReason:(NSString *)reason;
00081 
00087 - (id)initWithReadOnlyData:(NSString *)data;
00088 
00089 #pragma mark -
00090 #pragma mark Querying Exception Properties
00091 
00096 - (NSString *)readOnlyData;
00097 
00098 @end
 All Classes Files Functions Typedefs Enumerations Enumerator Defines