Exception: PDF::Core::FilterList::NotFilter
- Inherits:
-
StandardError
- Object
- StandardError
- PDF::Core::FilterList::NotFilter
- Defined in:
- lib/pdf/core/filter_list.rb
Overview
An exception one can expect when adding something to filter list that can not be interpreted as a filter.
Constant Summary collapse
- DEFAULT_MESSAGE =
Generic default error message
'Can not interpret input as a filter'
- MESSAGE_WITH_FILTER =
Error message template with more details
'Can not interpret input as a filter: %<filter>s'
Instance Method Summary collapse
-
#initialize(message = DEFAULT_MESSAGE, filter: nil) ⇒ NotFilter
constructor
A new instance of NotFilter.
Constructor Details
#initialize(message = DEFAULT_MESSAGE, filter: nil) ⇒ NotFilter
Returns a new instance of NotFilter.
Source Code
lib/pdf/core/filter_list.rb, line 16
16 | def initialize(message = DEFAULT_MESSAGE, filter: nil) |
17 | if filter |
18 | super(format(MESSAGE_WITH_FILTER, filter: filter)) |
19 | else
|
20 | super(message) |
21 | end
|
22 | end
|