class Protein::ServiceError
Attributes
pointer[RW]
reason[R]
Public Class Methods
new(reason: nil, pointer: nil)
click to toggle source
# File lib/protein/service_error.rb, line 6 def initialize(reason: nil, pointer: nil) @reason = reason if reason @pointer = pointer if pointer unless @reason.is_a?(String) || @reason.is_a?(Symbol) raise(ProcessingError, "error reason must be a string or symbol") end end