module AMA::Entity::Mapper::Mixin::Errors

Simple mixin that provides shortcuts for raising common errors

Public Instance Methods

raise_if_internal(e) click to toggle source

Raises error again if this is an internal error @param [Exception] e

# File lib/ama-entity-mapper/mixin/errors.rb, line 48
def raise_if_internal(e)
  raise e if e.is_a?(Mapper::Error)
end