Module: CloudFoundry::Perm::V1::Errors
- Defined in:
- lib/perm/v1/errors.rb
Defined Under Namespace
Classes: AlreadyExists, BadStatus, InvalidCertificateAuthorities, NotFound, StandardError
Class Method Summary collapse
Class Method Details
.from_grpc_error(e) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/perm/v1/errors.rb', line 7 def self.from_grpc_error(e) case e when GRPC::AlreadyExists AlreadyExists.new(e.code, e.details, e.) when GRPC::NotFound NotFound.new(e.code, e.details, e.) when GRPC::BadStatus BadStatus.new(e.code, e.details, e.) else e end end |