Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

41 lines (32 sloc) 1.068 kB
//
// NSError+GBError.h
// appledoc
//
// Created by Tomaz Kragelj on 29.11.10.
// Copyright 2010 Gentle Bytes. All rights reserved.
//
#import <Foundation/Foundation.h>
/** Adds helper methods to `NSError` for more organized code.
*/
@interface NSError (GBError)
/** Creates a new `NSError` with appledoc domain and given information.
@param code Error code.
@param description Error localized description.
@param reason Error localized failure reason.
@return Returns autoreleased `NSError` with the given data.
*/
+ (NSError *)errorWithCode:(NSInteger)code description:(NSString *)description reason:(NSString *)reason;
@end
enum {
GBErrorTemplatePathDoesntExist = 1000,
GBErrorTemplatePathNotDirectory,
GBErrorHTMLObjectTemplateMissing = 8000,
GBErrorHTMLIndexTemplateMissing,
GBErrorHTMLHierarchyTemplateMissing,
GBErrorDocSetDocumentTemplateMissing = 9000,
GBErrorDocSetInfoPlistTemplateMissing,
GBErrorDocSetNodesTemplateMissing,
GBErrorDocSetUtilIndexingFailed,
GBErrorDocSetXcodeReloadFailed,
};
typedef NSUInteger GBErrorCode;
Jump to Line
Something went wrong with that request. Please try again.