 		self = .custom(code: error.code, domain: error.domain, message: error.localizedDescription)
 	}
 	
-	var domain: String {
+	public var domain: String {
 		switch self {
 		case .server:
 			return defaultConfiguration.serverDomain
 		case let .custom(_, domain, _):
 			return domain
 		default:
-			return Error.AppDomain
+			return Error.appDomain
 		}
 	}
 	
-	var code: Int {
+	public var code: Int {
 		switch self {
 		case let .server(code, _):
 			return code

		}
	}
	
	static var AppDomain: String {
		if let bundleIdentifier = NSBundle.mainBundle().bundleIdentifier {
			return bundleIdentifier
		} else {

		}
	}
	
	public var message: String {
		switch self {
		case let .server(_, message):
			return message
