Class: Wrappix::Templates::Error
- Inherits:
-
Object
- Object
- Wrappix::Templates::Error
- Defined in:
- lib/wrappix/templates/error.rb
Class Method Summary collapse
Class Method Details
.render(module_name, _config) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/wrappix/templates/error.rb', line 6 def self.render(module_name, _config) <<~RUBY # frozen_string_literal: true module #{module_name} class Error < StandardError attr_reader :body, :status def initialize(message, body = nil, status = nil) @body = body @status = status super(message) end end end RUBY end |