Exception: Pdfrb::MalformedPdfError
- Inherits:
-
ParseError
- Object
- StandardError
- Error
- ParseError
- Pdfrb::MalformedPdfError
- Defined in:
- lib/pdfrb/error.rb
Overview
A PDF file violates the spec but Pdfrb recovered (or attempted to).
recovered? tells the caller whether reconstruction succeeded.
Instance Attribute Summary collapse
-
#recovered ⇒ Object
readonly
Returns the value of attribute recovered.
Attributes inherited from ParseError
Instance Method Summary collapse
-
#initialize(message, recovered: false, **opts) ⇒ MalformedPdfError
constructor
A new instance of MalformedPdfError.
- #recovered? ⇒ Boolean
Constructor Details
#initialize(message, recovered: false, **opts) ⇒ MalformedPdfError
Returns a new instance of MalformedPdfError.
32 33 34 35 |
# File 'lib/pdfrb/error.rb', line 32 def initialize(, recovered: false, **opts) @recovered = recovered super(, **opts) end |
Instance Attribute Details
#recovered ⇒ Object (readonly)
Returns the value of attribute recovered.
30 31 32 |
# File 'lib/pdfrb/error.rb', line 30 def recovered @recovered end |
Instance Method Details
#recovered? ⇒ Boolean
37 |
# File 'lib/pdfrb/error.rb', line 37 def recovered? = @recovered |