7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# File 'lib/hammer_cli_foreman/exception_handler.rb', line 7
def mappings
super + [
[HammerCLIForeman::OperationNotSupportedError, :handle_unsupported_operation],
[RestClient::InternalServerError, :handle_internal_error],
[RestClient::Forbidden, :handle_forbidden],
[RestClient::UnprocessableEntity, :handle_unprocessable_entity],
[RestClient::MovedPermanently, :handle_moved_permanently],
[RestClient::BadRequest, :handle_bad_request],
[ApipieBindings::AuthenticatorError, :handle_authenticator_error],
[HammerCLIForeman::Api::UnauthorizedError, :handle_foreman_unauthorized],
[HammerCLIForeman::Api::SessionExpired, :handle_sesion_expired],
[ArgumentError, :handle_argument_error],
]
end
|