lib/mrkt/errors.rb in mrkt-1.0.1 vs lib/mrkt/errors.rb in mrkt-1.1.0

- old
+ new

@@ -38,10 +38,29 @@ 1009 => 'PartitionNameUnspecified', 1010 => 'PartitionUpdateDenied', 1011 => 'FieldNotSupported', 1012 => 'InvalidCookieValue', 1013 => 'ObjectNotFound', - 1014 => 'FailedToCreateObject' + 1014 => 'FailedToCreateObject', + 1015 => 'LeadNotInList', + 1016 => 'TooManyImports', + 1017 => 'ObjectAlreadyExists', + 1018 => 'CRMEnabled', + 1019 => 'ImportInProgress', + 1020 => 'TooManyCloneToProgram', + 1021 => 'CompanyUpdateNotAllowed', + 1022 => 'ObjectInUse', + 1025 => 'ProgramStatusNotFound', + 1026 => 'CustomObjectNotEnabled', + 1027 => 'MaxActivityTypeLimitReached', + 1028 => 'MaxFieldLimitReached', + 1029 => 'BulkExportQuotaExceeded', + 1035 => 'UnsupportedFilterType', + 1036 => 'DuplicateObjectFoundInInput', + 1042 => 'InvalidRunAtDate', + 1048 => 'CustomObjectDiscardDraftFailed', + 1049 => 'FailedToCreateActivity', + 1077 => 'MergeLeadsCallFailedDueToFieldLength' }.freeze RESPONSE_CODE_TO_ERROR.each_value do |class_name| const_set(class_name, create_class) end