Exception: NgrokAPI::Error + + + +
+-
+
- Inherits: +
-
+ StandardError
+
+
-
+
- Object + +
- StandardError + +
- NgrokAPI::Error + +
+
-
+
- Defined in: +
- lib/ngrokapi/error.rb +
Overview
Base Error class for all Ngrok Errors
+ + +Direct Known Subclasses
+ +Instance Attribute Summary collapse
+-
+
+
-
+
+
+ #response ⇒ Object
+
+
+
+
+
+
+
+
+ readonly
+
+
+
+
+
+
+
+
+
+ ++ +
Returns the value of attribute response.
+
+
+
+
+ Instance Method Summary + collapse +
+ +-
+
+
-
+
+
+ #initialize(msg: "An error occurred with the NgrokAPI", response: nil) ⇒ Error
+
+
+
+
+
+
+ constructor
+
+
+
+
+
+
+
+
+ ++ +
A new instance of Error.
+
+
+
+
Constructor Details
+ ++ + #initialize(msg: "An error occurred with the NgrokAPI", response: nil) ⇒ Error + + + + + +
Returns a new instance of Error.
+ + +
+ + + +9 +10 +11 +12+ |
+
+ # File 'lib/ngrokapi/error.rb', line 9 + +def initialize(msg: "An error occurred with the NgrokAPI", response: nil) + @response = response + super(msg) +end+ |
+
Instance Attribute Details
+ + + ++ + #response ⇒ Object (readonly) + + + + + +
Returns the value of attribute response.
+ + +
+ + + +7 +8 +9+ |
+
+ # File 'lib/ngrokapi/error.rb', line 7 + +def response + @response +end+ |
+