WikibaseLexeme
MediaWiki WikibaseLexeme extension
Loading...
Searching...
No Matches
Wikibase\Lexeme\Interactors\UseCaseError Class Reference
+ Inheritance diagram for Wikibase\Lexeme\Interactors\UseCaseError:
+ Collaboration diagram for Wikibase\Lexeme\Interactors\UseCaseError:

Public Member Functions

 __construct (public readonly string $errorCode, public readonly string $errorMessage, public readonly array $context=[],)
 

Static Public Member Functions

static newResourceNotFound (string $resourceType)
 
static newInvalidPathParameter (string $parameterName)
 
static newMissingField (string $path, string $field)
 
static newReferencedResourceNotFound (string $path)
 
static newInvalidValue (string $path)
 
static newInvalidKey (string $path, string $key)
 
static newValueTooLong (string $path, int $maxLength)
 
static newStatementGroupPropertyIdMismatch (string $path, string $statementGroupPropertyId, string $statementPropertyId,)
 
static newRateLimitReached (string $reason)
 
static newPermissionDenied (string $reason, array $denialContext=[],)
 
static newResourceTooLarge (int $maxSizeInKb)
 

Public Attributes

const string RESOURCE_NOT_FOUND = 'resource-not-found'
 
const string INVALID_PATH_PARAMETER = 'invalid-path-parameter'
 
const string MISSING_FIELD = 'missing-field'
 
const string INVALID_VALUE = 'invalid-value'
 
const string INVALID_KEY = 'invalid-key'
 
const string REQUEST_LIMIT_REACHED = 'request-limit-reached'
 
const string REQUEST_LIMIT_REASON_RATE_LIMIT = 'rate-limit-reached'
 
const string REQUEST_LIMIT_REASON_TEMP_ACCOUNT_CREATION_LIMIT = 'temp-account-creation-limit-reached'
 
const string VALUE_TOO_LONG = 'value-too-long'
 
const string RESOURCE_TOO_LARGE = 'resource-too-large'
 
const string REFERENCED_RESOURCE_NOT_FOUND = 'referenced-resource-not-found'
 
const string PERMISSION_DENIED = 'permission-denied'
 
const string PERMISSION_DENIED_REASON_USER_BLOCKED = 'blocked-user'
 
const string PERMISSION_DENIED_REASON_IP_BLOCKED = 'blocked-ip'
 
const string PERMISSION_DENIED_UNKNOWN_REASON = 'permission-denied-unknown-reason'
 
const string STATEMENT_GROUP_PROPERTY_ID_MISMATCH = 'statement-group-property-id-mismatch'
 
const string CONTEXT_DENIAL_CONTEXT = 'denial_context'
 
const string CONTEXT_DENIAL_REASON = 'denial_reason'
 
const string CONTEXT_RESOURCE_TYPE = 'resource_type'
 
const string CONTEXT_PARAMETER = 'parameter'
 
const string CONTEXT_PATH = 'path'
 
const string CONTEXT_FIELD = 'field'
 
const string CONTEXT_KEY = 'key'
 
const string CONTEXT_LIMIT = 'limit'
 
const string CONTEXT_REASON = 'reason'
 
const string CONTEXT_STATEMENT_GROUP_PROPERTY_ID = 'statement_group_property_id'
 
const string CONTEXT_STATEMENT_PROPERTY_ID = 'statement_property_id'
 

Private Attributes

const array EXPECTED_CONTEXT_KEYS
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lexeme\Interactors\UseCaseError::__construct ( public readonly string $errorCode,
public readonly string $errorMessage,
public readonly array $context = [] )

Member Function Documentation

◆ newInvalidKey()

static Wikibase\Lexeme\Interactors\UseCaseError::newInvalidKey ( string $path,
string $key )
static

◆ newInvalidPathParameter()

static Wikibase\Lexeme\Interactors\UseCaseError::newInvalidPathParameter ( string $parameterName)
static

◆ newInvalidValue()

static Wikibase\Lexeme\Interactors\UseCaseError::newInvalidValue ( string $path)
static

◆ newMissingField()

static Wikibase\Lexeme\Interactors\UseCaseError::newMissingField ( string $path,
string $field )
static

◆ newPermissionDenied()

static Wikibase\Lexeme\Interactors\UseCaseError::newPermissionDenied ( string $reason,
array $denialContext = [] )
static

◆ newRateLimitReached()

static Wikibase\Lexeme\Interactors\UseCaseError::newRateLimitReached ( string $reason)
static

◆ newReferencedResourceNotFound()

static Wikibase\Lexeme\Interactors\UseCaseError::newReferencedResourceNotFound ( string $path)
static

◆ newResourceNotFound()

static Wikibase\Lexeme\Interactors\UseCaseError::newResourceNotFound ( string $resourceType)
static

◆ newResourceTooLarge()

static Wikibase\Lexeme\Interactors\UseCaseError::newResourceTooLarge ( int $maxSizeInKb)
static

◆ newStatementGroupPropertyIdMismatch()

static Wikibase\Lexeme\Interactors\UseCaseError::newStatementGroupPropertyIdMismatch ( string $path,
string $statementGroupPropertyId,
string $statementPropertyId )
static

◆ newValueTooLong()

static Wikibase\Lexeme\Interactors\UseCaseError::newValueTooLong ( string $path,
int $maxLength )
static

Member Data Documentation

◆ CONTEXT_DENIAL_CONTEXT

const string Wikibase\Lexeme\Interactors\UseCaseError::CONTEXT_DENIAL_CONTEXT = 'denial_context'

◆ CONTEXT_DENIAL_REASON

const string Wikibase\Lexeme\Interactors\UseCaseError::CONTEXT_DENIAL_REASON = 'denial_reason'

◆ CONTEXT_FIELD

const string Wikibase\Lexeme\Interactors\UseCaseError::CONTEXT_FIELD = 'field'

◆ CONTEXT_KEY

const string Wikibase\Lexeme\Interactors\UseCaseError::CONTEXT_KEY = 'key'

◆ CONTEXT_LIMIT

const string Wikibase\Lexeme\Interactors\UseCaseError::CONTEXT_LIMIT = 'limit'

◆ CONTEXT_PARAMETER

const string Wikibase\Lexeme\Interactors\UseCaseError::CONTEXT_PARAMETER = 'parameter'

◆ CONTEXT_PATH

const string Wikibase\Lexeme\Interactors\UseCaseError::CONTEXT_PATH = 'path'

◆ CONTEXT_REASON

const string Wikibase\Lexeme\Interactors\UseCaseError::CONTEXT_REASON = 'reason'

◆ CONTEXT_RESOURCE_TYPE

const string Wikibase\Lexeme\Interactors\UseCaseError::CONTEXT_RESOURCE_TYPE = 'resource_type'

◆ CONTEXT_STATEMENT_GROUP_PROPERTY_ID

const string Wikibase\Lexeme\Interactors\UseCaseError::CONTEXT_STATEMENT_GROUP_PROPERTY_ID = 'statement_group_property_id'

◆ CONTEXT_STATEMENT_PROPERTY_ID

const string Wikibase\Lexeme\Interactors\UseCaseError::CONTEXT_STATEMENT_PROPERTY_ID = 'statement_property_id'

◆ EXPECTED_CONTEXT_KEYS

const array Wikibase\Lexeme\Interactors\UseCaseError::EXPECTED_CONTEXT_KEYS
private

◆ INVALID_KEY

const string Wikibase\Lexeme\Interactors\UseCaseError::INVALID_KEY = 'invalid-key'

◆ INVALID_PATH_PARAMETER

const string Wikibase\Lexeme\Interactors\UseCaseError::INVALID_PATH_PARAMETER = 'invalid-path-parameter'

◆ INVALID_VALUE

const string Wikibase\Lexeme\Interactors\UseCaseError::INVALID_VALUE = 'invalid-value'

◆ MISSING_FIELD

const string Wikibase\Lexeme\Interactors\UseCaseError::MISSING_FIELD = 'missing-field'

◆ PERMISSION_DENIED

const string Wikibase\Lexeme\Interactors\UseCaseError::PERMISSION_DENIED = 'permission-denied'

◆ PERMISSION_DENIED_REASON_IP_BLOCKED

const string Wikibase\Lexeme\Interactors\UseCaseError::PERMISSION_DENIED_REASON_IP_BLOCKED = 'blocked-ip'

◆ PERMISSION_DENIED_REASON_USER_BLOCKED

const string Wikibase\Lexeme\Interactors\UseCaseError::PERMISSION_DENIED_REASON_USER_BLOCKED = 'blocked-user'

◆ PERMISSION_DENIED_UNKNOWN_REASON

const string Wikibase\Lexeme\Interactors\UseCaseError::PERMISSION_DENIED_UNKNOWN_REASON = 'permission-denied-unknown-reason'

◆ REFERENCED_RESOURCE_NOT_FOUND

const string Wikibase\Lexeme\Interactors\UseCaseError::REFERENCED_RESOURCE_NOT_FOUND = 'referenced-resource-not-found'

◆ REQUEST_LIMIT_REACHED

const string Wikibase\Lexeme\Interactors\UseCaseError::REQUEST_LIMIT_REACHED = 'request-limit-reached'

◆ REQUEST_LIMIT_REASON_RATE_LIMIT

const string Wikibase\Lexeme\Interactors\UseCaseError::REQUEST_LIMIT_REASON_RATE_LIMIT = 'rate-limit-reached'

◆ REQUEST_LIMIT_REASON_TEMP_ACCOUNT_CREATION_LIMIT

const string Wikibase\Lexeme\Interactors\UseCaseError::REQUEST_LIMIT_REASON_TEMP_ACCOUNT_CREATION_LIMIT = 'temp-account-creation-limit-reached'

◆ RESOURCE_NOT_FOUND

const string Wikibase\Lexeme\Interactors\UseCaseError::RESOURCE_NOT_FOUND = 'resource-not-found'

◆ RESOURCE_TOO_LARGE

const string Wikibase\Lexeme\Interactors\UseCaseError::RESOURCE_TOO_LARGE = 'resource-too-large'

◆ STATEMENT_GROUP_PROPERTY_ID_MISMATCH

const string Wikibase\Lexeme\Interactors\UseCaseError::STATEMENT_GROUP_PROPERTY_ID_MISMATCH = 'statement-group-property-id-mismatch'

◆ VALUE_TOO_LONG

const string Wikibase\Lexeme\Interactors\UseCaseError::VALUE_TOO_LONG = 'value-too-long'

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