Module: Reve::Exceptions
- Defined in:
- lib/reve/exceptions.rb
Overview
Exceptions live here.
Defined Under Namespace
Classes: AccountKeyOutOfRange, AssetsAlreadyFetched, AuthenticationFailure, BadBeforeKillID, BetaAccessDenied, CSVHeaderRowMismatch, CachedAPIKeyAuthenticationFailure, CachedUntilException, CharacterDoesNotBelongToAccount, CharacterNeedsFactoryManagerRole, CharacterRetrevialFailure, CorporateRoleFetchException, CorporationNotInAlliance, CorporationRetrevialFailure, EveDatabaseConnectionFailure, EveDatabaseOffline, ExpectedBeforeKillID, FactionMemberInformationFailure, GetIDInvalid, GetNameInvalid, IndustryJobsAlreadyFetched, InvalidAccountKey, InvalidAttribute, InvalidBeforeRefID, InvalidBeforeTransID, InvalidBloodline, InvalidCharID, InvalidCharacterID, InvalidCorpID, InvalidGender, InvalidInput, InvalidInteger, InvalidItemIDProvided, InvalidRace, InvalidRefType, InvalidUserIDOrAPIKey, InvalidUsernameOrPassword, KeyNotFound, KillsExhausted, LoginDeniedByAccountStatus, MarketOrdersAlreadyFetched, MedalInformationFetchFailure, MustBeDirectorOrCEO, MustHaveAccountantOrTraderRole, MustHaveAccountantRole, MustProvideUserIDParameterForAuthentication, NoCorporationException, NotAvailableForNPCCorps, NullDataComponent, ObeyCacheTimers, ReveError, ReveNetworkStatusException, ReveUnexpectedEntityEncountered, SecurityLevelNotHighEnough, StarbaseDetailFetchFailure, TranquilityTimeException, UnexpectedBeforeKillID, UserForcedException, UserInformationFetchException, VersionEscalationException, VersionMismatchException, WalletExhausted, WalletNotPreviouslyLoaded, WalletPreviouslyLoaded, WebsiteOffline
Class Method Summary collapse
-
.raise_it(code, msg = "No Error Message From CCP Server (But one DID occur!)") ⇒ Object
Raise the flag!.
Class Method Details
.raise_it(code, msg = "No Error Message From CCP Server (But one DID occur!)") ⇒ Object
Raise the flag!
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 |
# File 'lib/reve/exceptions.rb', line 15 def self.raise_it(code,msg = "No Error Message From CCP Server (But one DID occur!)") msg = "(#{code.to_s}) #{msg}" case code when 100 raise WalletNotPreviouslyLoaded.new(msg) when 101, 103 raise WalletExhausted.new(msg) when 102 raise WalletPreviouslyLoaded.new(msg) when 104 raise KeyNotFound.new(msg) when 105 raise InvalidCharacterID.new(msg) when 106 raise MustProvideUserIDParameterForAuthentication.new(msg) when 107 raise InvalidBeforeRefID.new(msg) when 108 raise InvalidAccountKey.new(msg) when 109 raise AccountKeyOutOfRange.new(msg) when 110 raise InvalidBeforeTransID.new(msg) when 111 raise InvalidInteger.new(msg) when 112 raise VersionMismatchException.new(msg) when 113 raise VersionEscalationException.new(msg) when 114 raise InvalidItemIDProvided.new(msg) when 115 raise AssetsAlreadyFetched.new(msg) when 116 raise IndustryJobsAlreadyFetched.new(msg) when 117 raise MarketOrdersAlreadyFetched.new(msg) when 118 raise ExpectedBeforeKillID.new(msg) when 119 raise KillsExhausted.new(msg) when 120 raise UnexpectedBeforeKillID.new(msg) when 121 raise BadBeforeKillID.new(msg) when 200 raise SecurityLevelNotHighEnough.new(msg + ' (Should you be using the full API Key?)') when 201 raise CharacterDoesNotBelongToAccount.new(msg) when 202 raise CachedAPIKeyAuthenticationFailure.new(msg) when 203..205 raise AuthenticationFailure.new(msg) when 206 raise MustHaveAccountantRole.new(msg) when 207 raise NotAvailableForNPCCorps.new(msg) when 208 raise MustHaveAccountantOrTraderRole.new(msg) when 209 raise MustBeDirectorOrCEO.new(msg) when 210,212 raise AuthenticationFailure.new(msg) when 211 raise LoginDeniedByAccountStatus.new(msg) when 213 raise CharacterNeedsFactoryManagerRole.new(msg) when 214 raise CorporationNotInAlliance.new(msg) when 500 raise GetNameInvalid.new(msg) when 501 raise GetIDInvalid.new(msg) when 502 raise CachedUntilException.new(msg) when 503 raise InvalidInput.new(msg) when 504 raise InvalidRace.new(msg) when 505 raise InvalidGender.new(msg) when 506 raise InvalidBloodline.new(msg) when 507 raise InvalidAttribute.new(msg) when 508 raise InvalidRefType.new(msg) when 509 raise NullDataComponent.new(msg) when 510 raise NoCorporationException.new(msg) when 511 raise InvalidAccountKey.new(msg) when 512 raise InvalidCharID.new(msg) when 513 raise CorporateRoleFetchException.new(msg) when 514 raise InvalidCorpID.new(msg) when 515 raise InvalidUserIDOrAPIKey.new(msg) when 516 raise UserInformationFetchException.new(msg) when 517 raise CSVHeaderRowMismatch.new(msg) when 518 raise TranquilityTimeException.new(msg) when 519 raise StarbaseDetailFetchFailure.new(msg) when 520 raise EveDatabaseConnectionFailure.new(msg) when 521 raise InvalidUsernameOrPassword.new(msg) when 522 raise CharacterRetrevialFailure.new(msg) when 523 raise CorporationRetrevialFailure.new(msg) when 524 raise FactionMemberInformationFailure.new(msg) when 525 raise MedalInformationFetchFailure.new(msg) when 900 raise BetaAccessDenied.new(msg) when 901 raise WebsiteOffline.new(msg) when 902 raise EveDatabaseOffline.new(msg) when 903 raise ObeyCacheTimers.new(msg) when 999 raise UserForcedException.new(msg) end end |