//
//  SFSValidationError.m
//  SFS2X
//
//  Original development by Infosfer Game Technologies Ltd. | http://www.infosfer.com.
//
//  Maintained and developed by A51 Integrated.
//  Copyright 2012 A51 Integrated | http://a51integrated.com. All rights reserved.
//

#import "SFSValidationException.h"


@implementation SFSValidationException

@synthesize errors = _errors;



-(id)initWithReason:(NSString *)reason errors:(NSMutableArray *)errors {

	if ((self = [super initWithName:NSStringFromClass([self class]) reason:reason userInfo:nil])) {
		self.errors = errors;
	}
	
	return self;
}

+(id)validationExceptionWithReason:(NSString *)reason errors:(NSMutableArray *)errors; {

	SFSValidationException *ex = [[SFSValidationException alloc] initWithReason:reason errors:errors];
	return ex;
}

@end
