Exception: SorbetProgress::Error

Inherits:
StandardError
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/sorbet_progress/error.rb

Overview

Parent class of all errors raised by SorbetProgress. Every error should have a unique number.

Instance Method Summary collapse

Constructor Details

#initialize(number, message) ⇒ Error

Returns a new instance of Error.



11
12
13
14
15
16
17
18
19
# File 'lib/sorbet_progress/error.rb', line 11

def initialize(number, message)
  super(
    format(
      "%s (SPE%d)",
      message,
      number
    )
  )
end