Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\RestApi\UseCases\ErrorResponse Class Reference
+ Inheritance diagram for Wikibase\Repo\RestApi\UseCases\ErrorResponse:

Public Member Functions

 __construct (string $code, string $message)
 
 getCode ()
 
 getMessage ()
 

Public Attributes

const COMMENT_TOO_LONG = 'comment-too-long'
 
const INVALID_EDIT_TAG = 'invalid-edit-tag'
 
const INVALID_FIELD = 'invalid-field'
 
const INVALID_ITEM_ID = 'invalid-item-id'
 
const INVALID_STATEMENT_ID = 'invalid-statement-id'
 
const INVALID_STATEMENT_DATA = 'invalid-statement-data'
 
const INVALID_OPERATION_CHANGED_STATEMENT_ID = 'invalid-operation-change-statement-id'
 
const INVALID_OPERATION_CHANGED_PROPERTY = 'invalid-operation-change-property-of-statement'
 
const ITEM_NOT_FOUND = 'item-not-found'
 
const ITEM_REDIRECTED = 'redirected-item'
 
const PERMISSION_DENIED = 'permission-denied'
 
const STATEMENT_NOT_FOUND = 'statement-not-found'
 
const UNEXPECTED_ERROR = 'unexpected-error'
 

Private Attributes

 $code
 
 $message
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\UseCases\ErrorResponse::__construct ( string  $code,
string  $message 
)

Member Function Documentation

◆ getCode()

Wikibase\Repo\RestApi\UseCases\ErrorResponse::getCode ( )

◆ getMessage()

Wikibase\Repo\RestApi\UseCases\ErrorResponse::getMessage ( )

Member Data Documentation

◆ $code

Wikibase\Repo\RestApi\UseCases\ErrorResponse::$code
private

◆ $message

Wikibase\Repo\RestApi\UseCases\ErrorResponse::$message
private

◆ COMMENT_TOO_LONG

const Wikibase\Repo\RestApi\UseCases\ErrorResponse::COMMENT_TOO_LONG = 'comment-too-long'

◆ INVALID_EDIT_TAG

const Wikibase\Repo\RestApi\UseCases\ErrorResponse::INVALID_EDIT_TAG = 'invalid-edit-tag'

◆ INVALID_FIELD

const Wikibase\Repo\RestApi\UseCases\ErrorResponse::INVALID_FIELD = 'invalid-field'

◆ INVALID_ITEM_ID

const Wikibase\Repo\RestApi\UseCases\ErrorResponse::INVALID_ITEM_ID = 'invalid-item-id'

◆ INVALID_OPERATION_CHANGED_PROPERTY

const Wikibase\Repo\RestApi\UseCases\ErrorResponse::INVALID_OPERATION_CHANGED_PROPERTY = 'invalid-operation-change-property-of-statement'

◆ INVALID_OPERATION_CHANGED_STATEMENT_ID

const Wikibase\Repo\RestApi\UseCases\ErrorResponse::INVALID_OPERATION_CHANGED_STATEMENT_ID = 'invalid-operation-change-statement-id'

◆ INVALID_STATEMENT_DATA

const Wikibase\Repo\RestApi\UseCases\ErrorResponse::INVALID_STATEMENT_DATA = 'invalid-statement-data'

◆ INVALID_STATEMENT_ID

const Wikibase\Repo\RestApi\UseCases\ErrorResponse::INVALID_STATEMENT_ID = 'invalid-statement-id'

◆ ITEM_NOT_FOUND

const Wikibase\Repo\RestApi\UseCases\ErrorResponse::ITEM_NOT_FOUND = 'item-not-found'

◆ ITEM_REDIRECTED

const Wikibase\Repo\RestApi\UseCases\ErrorResponse::ITEM_REDIRECTED = 'redirected-item'

◆ PERMISSION_DENIED

const Wikibase\Repo\RestApi\UseCases\ErrorResponse::PERMISSION_DENIED = 'permission-denied'

◆ STATEMENT_NOT_FOUND

const Wikibase\Repo\RestApi\UseCases\ErrorResponse::STATEMENT_NOT_FOUND = 'statement-not-found'

◆ UNEXPECTED_ERROR

const Wikibase\Repo\RestApi\UseCases\ErrorResponse::UNEXPECTED_ERROR = 'unexpected-error'

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