Skip to content

Instantly share code, notes, and snippets.

@duvrai
Created July 2, 2015 14:58
Show Gist options
  • Save duvrai/44e2151407aacde39cdd to your computer and use it in GitHub Desktop.
Save duvrai/44e2151407aacde39cdd to your computer and use it in GitHub Desktop.
Mailjet errors
$internalErrors = array(
'MJ01' => 'Could not determine APIKey', // SERRCouldNotDetermineAPIKey
'MJ02' => 'No persister object found for class: "%s"', // SErrNoPersister
'MJ03' => 'A non-empty value is required', // SErrValueRequired
'MJ04' => 'Value must have at least length %d', // SErrMinLength
'MJ05' => 'Value may have at most length %d', // SErrMaxLength
'MJ06' => 'Value must be larger than or equal to %s', // SErrMinValue
'MJ07' => 'Value must be less than or equal to %s', // SErrMaxValue
'MJ08' => 'Property %s is invalid: %s', // SErrInProperty
'MJ09' => 'Value is not in list of allowed values: (%s)', // SErrValueNotInList
'MJ10' => 'Value must be positive', // SErrPositiveValueRequired
'MJ11' => 'Unknown object type "%s".', // SErrUnknownObject
'MJ12' => 'Cannot save object of type %s', // SerrCannotSaveObjectType
'MJ13' => 'Invalid characters in MD5 hash: "%s"', // SErrInvalidHashCharacters
'MJ14' => 'Invalid length for MD5 hash: %d', // SErrInvalidHashLength
'MJ15' => 'Unknown relation name : "%s"', // SErrUnkownRelation
'MJ16' => 'Class "%s" does not support a unique key.', // SErrNoAlternateKey
'MJ17' => '(%s) Cannot search unique key: unique key value is empty.', // SErrNoAlternateKeyValue
'MJ18' => 'A %s resource with value "%s" for %s already exists.', // SErrDuplicateKey
'MJ19' => 'Setting a value for property "%s" is not allowed', // SErrCannotWriteProperty
'MJ20' => 'Setting a value for properties is not allowed', // SErrCannotWriteProperties
// ContactMetadata
'CM01' => 'Property "%s" already exists', // sERRCMPropertyAlreadyExists
'CM02' => 'Unknown namespace : %s', // SERRCMUnknownNamespace
'CM03' => '"%s" is not a valid integer value for key %s', // SERRCMNotAValidIntegerValueForKey
'CM04' => '"%s" is not a valid bool value for key %s', // SERRCMNotAValidBoolValueForKey
'CM05' => '"%s" is not a valid float value for key %s', // SERRCMNotAValidFloatValue
'CM06' => 'Length of value (%d bytes) exceeds maximum data length (%d bytes) ', // SERRCMLengthOfValueExceedsMaxDataLength
'CM07' => 'Internal error: invalid data type %d', // SERRCMInternalErrorInvalidDataType
'CM08' => '"%s" is not a valid datatype' // SERRCMNotAValidDataType
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment