Exception: Proscenium::Middleware::Base::CompileError
- Defined in:
- lib/proscenium/middleware/base.rb
Overview
Error when the result of the build returns an error. For example, when esbuild returns errors.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#detail ⇒ Object
readonly
Returns the value of attribute detail.
-
#file ⇒ Object
readonly
Returns the value of attribute file.
Instance Method Summary collapse
-
#initialize(args) ⇒ CompileError
constructor
A new instance of CompileError.
Constructor Details
#initialize(args) ⇒ CompileError
Returns a new instance of CompileError.
15 16 17 18 19 |
# File 'lib/proscenium/middleware/base.rb', line 15 def initialize(args) @detail = args[:detail] @file = args[:file] super("Failed to build '#{args[:file]}' -- #{detail}") end |
Instance Attribute Details
#detail ⇒ Object (readonly)
Returns the value of attribute detail.
13 14 15 |
# File 'lib/proscenium/middleware/base.rb', line 13 def detail @detail end |
#file ⇒ Object (readonly)
Returns the value of attribute file.
13 14 15 |
# File 'lib/proscenium/middleware/base.rb', line 13 def file @file end |