Class: X::Resources::Error

Inherits:
Error
  • Object
show all
Defined in:
x-resources/lib/x/resources/errors.rb

Overview

Base error class for the failures of the object layer, which every error x-resources raises of its own descends from

It descends from X::Error, so that rescuing the errors of the X API catches one of them as well. The errors that descend from it are named directly under X, as the errors of x-core are, so that this is the one name under X::Resources a rescue reaches for: it catches the failure of the object layer alone.