Class: Steep::Diagnostic::Signature::UnexpectedError

Inherits:
Base
  • Object
show all
Defined in:
lib/steep/diagnostic/signature.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#location

Instance Method Summary collapse

Methods inherited from Base

#detail_lines, #diagnostic_code, #path

Methods included from Helper

#error_name, #full_message

Constructor Details

#initialize(message:, location:) ⇒ UnexpectedError



356
357
358
359
# File 'lib/steep/diagnostic/signature.rb', line 356

def initialize(message:, location:)
  @message = message
  @location = location
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



354
355
356
# File 'lib/steep/diagnostic/signature.rb', line 354

def message
  @message
end

Instance Method Details

#header_lineObject



361
362
363
# File 'lib/steep/diagnostic/signature.rb', line 361

def header_line
  "Unexpected error: #{message}"
end