Exception: Shifty::PolicyError

Inherits:
Error
  • Object
show all
Defined in:
lib/shifty/errors.rb

Direct Known Subclasses

PolicyViolation, UnshareableValue

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#policyObject (readonly)

Returns the value of attribute policy.



9
10
11
# File 'lib/shifty/errors.rb', line 9

def policy
  @policy
end

#valueObject (readonly)

Returns the value of attribute value.



9
10
11
# File 'lib/shifty/errors.rb', line 9

def value
  @value
end

#workerObject (readonly)

Returns the value of attribute worker.



9
10
11
# File 'lib/shifty/errors.rb', line 9

def worker
  @worker
end

Instance Method Details

#causeObject



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

def cause
  @wrapped_cause || super
end