Exception: Puppetserver::Ca::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/puppetserver/ca/errors.rb

Direct Known Subclasses

ConnectionFailed, FileNotFound, InvalidX509Object

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#wrappedObject (readonly)

Returns the value of attribute wrapped.



11
12
13
# File 'lib/puppetserver/ca/errors.rb', line 11

def wrapped
  @wrapped
end

Class Method Details

.create(ex, msg) ⇒ Object



4
5
6
7
8
9
# File 'lib/puppetserver/ca/errors.rb', line 4

def self.create(ex, msg)
  created = new(msg)
  created.wrap(ex)

  created
end

Instance Method Details

#wrap(ex) ⇒ Object



13
14
15
# File 'lib/puppetserver/ca/errors.rb', line 13

def wrap(ex)
  @wrapped = ex
end