Exception: PantographCore::Interface::PantographError
- Inherits:
-
PantographException
- Object
- Exception
- StandardError
- PantographException
- PantographCore::Interface::PantographError
- Defined in:
- pantograph_core/lib/pantograph_core/ui/errors/pantograph_error.rb
Instance Attribute Summary collapse
-
#error_info ⇒ Object
readonly
Returns the value of attribute error_info.
-
#show_github_issues ⇒ Object
readonly
Returns the value of attribute show_github_issues.
Instance Method Summary collapse
-
#initialize(show_github_issues: false, error_info: nil) ⇒ PantographError
constructor
A new instance of PantographError.
- #prefix ⇒ Object
Methods inherited from PantographException
Methods inherited from StandardError
Methods inherited from Exception
#pantograph_should_report_metrics?
Constructor Details
#initialize(show_github_issues: false, error_info: nil) ⇒ PantographError
Returns a new instance of PantographError.
9 10 11 12 |
# File 'pantograph_core/lib/pantograph_core/ui/errors/pantograph_error.rb', line 9 def initialize(show_github_issues: false, error_info: nil) @show_github_issues = show_github_issues @error_info = error_info end |
Instance Attribute Details
#error_info ⇒ Object (readonly)
Returns the value of attribute error_info.
7 8 9 |
# File 'pantograph_core/lib/pantograph_core/ui/errors/pantograph_error.rb', line 7 def error_info @error_info end |
#show_github_issues ⇒ Object (readonly)
Returns the value of attribute show_github_issues.
6 7 8 |
# File 'pantograph_core/lib/pantograph_core/ui/errors/pantograph_error.rb', line 6 def show_github_issues @show_github_issues end |
Instance Method Details
#prefix ⇒ Object
14 15 16 |
# File 'pantograph_core/lib/pantograph_core/ui/errors/pantograph_error.rb', line 14 def prefix '[USER_ERROR]' end |