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

Returns a new instance of UnexpectedError.



387
388
389
390
# File 'lib/steep/diagnostic/signature.rb', line 387

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

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



385
386
387
# File 'lib/steep/diagnostic/signature.rb', line 385

def message
  @message
end

Instance Method Details

#header_lineObject



392
393
394
# File 'lib/steep/diagnostic/signature.rb', line 392

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