//
//  NSError+Convenience.h
//  Glyphs
//
//  Created by Georg Seifert on 15.01.11.
//  Copyright 2011 schriftgestaltung.de. All rights reserved.
//

#import <GlyphsCore/GlyphsCore.h>

@interface NSError (Convenient)

#ifndef GLYPHS_VIEWER
+ (NSError *)errorWithDescription:(NSString *)description code:(NSInteger)code;
+ (NSError *)errorWithDescription:(NSString *)description suggestion:(NSString *)suggestion code:(NSInteger)code;
+ (NSError *)errorDummy;
+ (NSError *)fileFormatError:(NSString *)text requiredFormat:(GSFormatVersion)requiredFormat;
+ (NSError *)fileFormatError:(NSString *)text requiredFormat:(GSFormatVersion)requiredFormat code:(NSInteger)code options:(NSDictionary *)options;
#endif

@end
