Module: Fasttrack
- Defined in:
- lib/fasttrack.rb,
lib/fasttrack/xmp.rb,
lib/fasttrack/file.rb,
lib/fasttrack/version.rb,
lib/fasttrack/exceptions.rb,
lib/fasttrack/namespaces.rb
Defined Under Namespace
Classes: File, FileFormatError, OpenError, WriteError, XMP
Constant Summary collapse
- VERSION =
"0.2"
- NAMESPACES =
Populated at runtime with the namespace values from Exempi::Namespaces
{}
Class Method Summary collapse
-
.handle_exempi_failure ⇒ Object
Checks for an Exempi error, and raises the appropriate exception.
Class Method Details
.handle_exempi_failure ⇒ Object
Checks for an Exempi error, and raises the appropriate exception. Should only be used when an error has been detected from the boolean output of one of Exempi’s functions.
13 14 15 16 17 |
# File 'lib/fasttrack.rb', line 13 def self.handle_exempi_failure error_code = Exempi.xmp_get_error = Exempi.exception_for error_code raise Exempi::ExempiError.new(error_code), "Exempi failed with the code #{}" end |