Exception: Rfm::Error::FileMakerError

Inherits:
Exception
  • Object
show all
Defined in:
lib/rfm_error.rb

Class Method Summary collapse

Class Method Details

.instance(error_code) ⇒ Object



3
4
5
6
7
8
9
10
11
# File 'lib/rfm_error.rb', line 3

def self.instance(error_code)
  case error_code
    when 101 then return RecordMissingError.new
    when 102 then return FieldMissingError.new
    when 104 then return RelationshipMissingError.new
    when 105 then return LayoutMissingError.new
    else return FileMakerError.new
  end
end