Class: Textus::ErrorInfo

Inherits:
Data
  • Object
show all
Defined in:
lib/textus/errors.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#detailsObject (readonly)

Returns the value of attribute details

Returns:

  • (Object)

    the current value of details



2
3
4
# File 'lib/textus/errors.rb', line 2

def details
  @details
end

#exit_codeObject (readonly)

Returns the value of attribute exit_code

Returns:

  • (Object)

    the current value of exit_code



2
3
4
# File 'lib/textus/errors.rb', line 2

def exit_code
  @exit_code
end

#hintObject (readonly)

Returns the value of attribute hint

Returns:

  • (Object)

    the current value of hint



2
3
4
# File 'lib/textus/errors.rb', line 2

def hint
  @hint
end

Class Method Details

.for(details: {}, exit_code: 1, hint: nil) ⇒ Object



3
4
5
# File 'lib/textus/errors.rb', line 3

def self.for(details: {}, exit_code: 1, hint: nil)
  new(details: details, exit_code: exit_code, hint: hint)
end