Exception: RustPdf::Error
- Inherits:
-
StandardError
- Object
- StandardError
- RustPdf::Error
- Defined in:
- lib/rustpdf.rb
Overview
Raised when a native call returns a non-zero PdfStatus.
Instance Attribute Summary collapse
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message, status = 0) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, status = 0) ⇒ Error
Returns a new instance of Error.
16 17 18 19 |
# File 'lib/rustpdf.rb', line 16 def initialize(, status = 0) @status = status super(status.zero? ? : "PdfStatus=#{status}: #{message}") end |
Instance Attribute Details
#status ⇒ Object (readonly)
Returns the value of attribute status.
14 15 16 |
# File 'lib/rustpdf.rb', line 14 def status @status end |