Parent

Methods

DeltaCloud::API::BackendError

Re-raise backend errors as on exception in client with message from backend

Public Class Methods

new(opts={}) click to toggle source
# File lib/deltacloud.rb, line 404
def initialize(opts={})
  opts[:message] = "Not authorized / Invalid credentials" if opts[:code] == 401
  super("#{opts[:code]} : #{opts[:message]}")
  set_backtrace(opts[:backtrace].split("\n").map { |l| l.strip }[0..10]) if opts[:backtrace]
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.