class ViewModel::WrappedExceptionError

Error type to wrap an arbitrary exception as a renderable ViewModel::AbstractError

def code

def code
  @code || "Exception.#{exception.class.name}"
end

def detail

def detail
  exception.message
end

def initialize(exception, status, code)

def initialize(exception, status, code)
  @exception = exception
  @status    = status
  @code      = code
  super()
end