AXIAM PHP SDK

NotFoundError extends AuthzError
in package

FinalYes

`404 Not Found` on the §27 management surface — CONTRACT.md §27.4 rule 7.

Extends AuthzError, which is not the obvious parent and is the point. AXIAM is multi-tenant, and the server answers 404 for an object belonging to another tenant precisely so a probing caller cannot tell "does not exist" from "exists, not yours". Classifying it as an authorization outcome keeps the SDK from re-creating that distinction on the client side, where the server deliberately refused to draw it.

Table of Contents

Methods

__construct()  : mixed
getAction()  : string|null
Action the caller was denied (e.g. `users:delete`).
getResourceId()  : string|null
Resource the denial applies to.

Methods

__construct()

public __construct(string $message) : mixed
Parameters
$message : string

Describes the missing (or invisible) object.

getAction()

Action the caller was denied (e.g. `users:delete`).

public getAction() : string|null
Return values
string|null

null when the server did not report an action.

getResourceId()

Resource the denial applies to.

public getResourceId() : string|null
Return values
string|null

null for a global (non-resource-scoped) denial, or when the server did not report a resource.

On this page

Search results