public const INVALID_API_CRITERIA_IDS = 'FRAMEWORK__INVALID_API_CRITERIA_IDS';
public const CANNOT_CREATE_NEW_VERSION = 'FRAMEWORK__CANNOT_CREATE_NEW_VERSION';
public const VERSION_MERGE_ALREADY_LOCKED = 'FRAMEWORK__VERSION_MERGE_ALREADY_LOCKED';
final public const INVALID_LANGUAGE_ID = 'FRAMEWORK__INVALID_LANGUAGE_ID';
public static function invalidSerializerField(string
$expectedClass, Field
$field): self
{ if (!Feature::
isActive('v6.6.0.0'
)) { return new InvalidSerializerFieldException($expectedClass,
$field);
} return new self( Response::HTTP_BAD_REQUEST,
self::INVALID_FIELD_SERIALIZER_CODE,
'Expected field of type "{{ expectedField }}" got "{{ field }}".',
['expectedField' =>
$expectedClass, 'field' =>
$field::
class] );
} public static function invalidCronIntervalFormat(string
$cronIntervalString): self
{