Module: ApiException

Defined in:
lib/api_exception.rb,
lib/api_exception/engine.rb,
lib/api_exception/version.rb,
lib/api_exception/base_exception.rb,
lib/api_exception/file_exception.rb,
lib/api_exception/user_exception.rb,
lib/api_exception/model_exception.rb,
lib/api_exception/request_exception.rb,
lib/api_exception/service_exception.rb,
lib/api_exception/controller_exception.rb

Defined Under Namespace

Classes: BaseException, ControllerException, Engine, FileException, ModelException, RequestException, ServiceException, UserException

Constant Summary collapse

VERSION =

first number stable version second number major release bug fixes or minor release

"1.2.3"

Class Method Summary collapse

Class Method Details

.rootObject



14
15
16
# File 'lib/api_exception.rb', line 14

def root
  Pathname.new(File.expand_path('../', __FILE__))
end

.setup {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (ApiException)

    the object that the method was called on



18
19
20
# File 'lib/api_exception.rb', line 18

def setup
  yield self
end