Exception: Proscenium::Middleware::Base::CompileError

Inherits:
StandardError
  • Object
show all
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

Esbuild::CompileError

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#detailObject (readonly)

Returns the value of attribute detail.



13
14
15
# File 'lib/proscenium/middleware/base.rb', line 13

def detail
  @detail
end

#fileObject (readonly)

Returns the value of attribute file.



13
14
15
# File 'lib/proscenium/middleware/base.rb', line 13

def file
  @file
end