WikiLambda
MediaWiki WikiLambda extension
Loading...
Searching...
No Matches
MediaWiki\Extension\WikiLambda\Registry\ZErrorTypeRegistry Class Reference

A registry service for ZErrorType. More...

+ Inheritance diagram for MediaWiki\Extension\WikiLambda\Registry\ZErrorTypeRegistry:
+ Collaboration diagram for MediaWiki\Extension\WikiLambda\Registry\ZErrorTypeRegistry:

Public Member Functions

 isZErrorTypeKnown (string $errorType)
 Check if the given ZErrorType Zid is known.
 
 instanceOfZErrorType (string $zid)
 Check if the given Zid belongs to a ZErrorType.
 
 isZErrorTypeCached (string $errorType)
 Check if the given Zid is an already cached ZErrorType (Z50)
 
 getZErrorTypeLabel (string $errorType)
 Gets the ZErrorType label in English.
 
- Public Member Functions inherited from MediaWiki\Extension\WikiLambda\Registry\ZObjectRegistry
 register (string $zid, string $value)
 Utility method to cache a key value in a registry instance, where the key is the Zid of the cached ZObject.
 
 unregister (string $zid)
 Utility method to remove a given Zid from a registry instance.
 
 clear ()
 Utility method to clear the whole cache of a registry instance and set it to initial values.
 
 isZidCached (string $zid)
 Utility method to check if the given Zid is cached in the registry.
 

Public Attributes

const Z_ERROR_UNKNOWN = 'Z500'
 
const Z_ERROR_INVALID_SYNTAX = 'Z501'
 
const Z_ERROR_NOT_WELLFORMED = 'Z502'
 
const Z_ERROR_ZID_NOT_FOUND = 'Z504'
 
const Z_ERROR_ARGUMENT_TYPE_MISMATCH = 'Z506'
 
const Z_ERROR_EVALUATION = 'Z507'
 
const Z_ERROR_LIST = 'Z509'
 
const Z_ERROR_MISSING_KEY = 'Z511'
 
const Z_ERROR_MISSING_PERSISTENT_VALUE = 'Z513'
 
const Z_ERROR_UNDEFINED_LIST_TYPE = 'Z519'
 
const Z_ERROR_WRONG_LIST_TYPE = 'Z520'
 
const Z_ERROR_NOT_NUMBER_BOOLEAN_NULL = 'Z521'
 
const Z_ERROR_ARRAY_ELEMENT_NOT_WELLFORMED = 'Z522'
 
const Z_ERROR_MISSING_TYPE = 'Z523'
 
const Z_ERROR_TYPE_NOT_STRING_ARRAY = 'Z524'
 
const Z_ERROR_INVALID_KEY = 'Z525'
 
const Z_ERROR_KEY_VALUE_NOT_WELLFORMED = 'Z526'
 
const Z_ERROR_STRING_VALUE_MISSING = 'Z532'
 
const Z_ERROR_STRING_VALUE_WRONG_TYPE = 'Z533'
 
const Z_ERROR_REFERENCE_VALUE_MISSING = 'Z535'
 
const Z_ERROR_REFERENCE_VALUE_WRONG_TYPE = 'Z536'
 
const Z_ERROR_REFERENCE_VALUE_INVALID = 'Z537'
 
const Z_ERROR_WRONG_NAMESPACE = 'Z538'
 
const Z_ERROR_WRONG_CONTENT_TYPE = 'Z539'
 
const Z_ERROR_INVALID_LANG_CODE = 'Z540'
 
const Z_ERROR_LANG_NOT_FOUND = 'Z541'
 
const Z_ERROR_UNEXPECTED_ZTYPE = 'Z542'
 
const Z_ERROR_ZTYPE_NOT_FOUND = 'Z543'
 
const Z_ERROR_CONFLICTING_TYPE_NAMES = 'Z544'
 
const Z_ERROR_CONFLICTING_TYPE_ZIDS = 'Z545'
 
const Z_ERROR_BUILTIN_TYPE_NOT_FOUND = 'Z546'
 
const Z_ERROR_INVALID_FORMAT = 'Z547'
 
const Z_ERROR_INVALID_JSON = 'Z548'
 
const Z_ERROR_INVALID_REFERENCE = 'Z549'
 
const Z_ERROR_UNKNOWN_REFERENCE = 'Z550'
 
const Z_ERROR_SCHEMA_TYPE_MISMATCH = 'Z551'
 
const Z_ERROR_ARRAY_TYPE_MISMATCH = 'Z552'
 
const Z_ERROR_DISALLOWED_ROOT_ZOBJECT = 'Z553'
 
const Z_ERROR_LABEL_CLASH = 'Z554'
 
const Z_ERROR_UNMATCHING_ZID = 'Z555'
 
const Z_ERROR_INVALID_TITLE = 'Z556'
 
const Z_ERROR_USER_CANNOT_EDIT = 'Z557'
 
const Z_ERROR_USER_CANNOT_RUN = 'Z559'
 
const Z_ERROR_ORCHESTRATOR_RATE_LIMIT = 'Z570'
 
const Z_ERROR_EVALUATOR_RATE_LIMIT = 'Z571'
 

Protected Member Functions

 initialize ()
 Initialize ZErrorTypeRegistry.
 

Additional Inherited Members

- Static Public Member Functions inherited from MediaWiki\Extension\WikiLambda\Registry\ZObjectRegistry
static singleton ()
 
static unregisterZid (string $zid)
 Unregisters the zid from any of the existing registry instances.
 
static clearAll ()
 Clears and re-initializes all existing registry instances.
 
- Protected Attributes inherited from MediaWiki\Extension\WikiLambda\Registry\ZObjectRegistry
 $registry = []
 
 $type
 

Detailed Description

A registry service for ZErrorType.

Member Function Documentation

◆ getZErrorTypeLabel()

MediaWiki\Extension\WikiLambda\Registry\ZErrorTypeRegistry::getZErrorTypeLabel ( string $errorType)

Gets the ZErrorType label in English.

Parameters
string$errorType
Returns
string
Exceptions
ZErrorException

◆ initialize()

MediaWiki\Extension\WikiLambda\Registry\ZErrorTypeRegistry::initialize ( )
protected

Initialize ZErrorTypeRegistry.

Reimplemented from MediaWiki\Extension\WikiLambda\Registry\ZObjectRegistry.

◆ instanceOfZErrorType()

MediaWiki\Extension\WikiLambda\Registry\ZErrorTypeRegistry::instanceOfZErrorType ( string $zid)

Check if the given Zid belongs to a ZErrorType.

Parameters
string$zid
Returns
bool

◆ isZErrorTypeCached()

MediaWiki\Extension\WikiLambda\Registry\ZErrorTypeRegistry::isZErrorTypeCached ( string $errorType)

Check if the given Zid is an already cached ZErrorType (Z50)

Parameters
string$errorType
Returns
bool

◆ isZErrorTypeKnown()

MediaWiki\Extension\WikiLambda\Registry\ZErrorTypeRegistry::isZErrorTypeKnown ( string $errorType)

Check if the given ZErrorType Zid is known.

Parameters
string$errorType
Returns
bool

The documentation for this class was generated from the following file: