Exception: PCRE2::Error
- Inherits:
-
StandardError
- Object
- StandardError
- PCRE2::Error
- Defined in:
- lib/pcre2/error.rb
Class Method Summary collapse
Class Method Details
.from_error_code(error_code, extra_message = nil) ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/pcre2/error.rb', line 2 def self.from_error_code(error_code, = nil) = "Error #{error_code}: " += PCRE2::Lib.(error_code) += " - #{extra_message}" if self.new() end |