balena-errors
Advanced tools
Comparing version 4.5.1 to 4.6.0-org-membership-role-not-found-b709b51005f202a21b17a481d0f7e1547523e827
@@ -147,2 +147,17 @@ /** | ||
/** | ||
* @summary Balena organization membership role not found | ||
* @class | ||
* @public | ||
* | ||
* @param {(String|Number)} organizationMembershipRole - organization membership role name or id | ||
* @return {Error} error instance | ||
* | ||
* @example | ||
* throw new errors.BalenaOrganizationMembershipRoleNotFound(123) | ||
*/ | ||
export declare class BalenaOrganizationMembershipRoleNotFound extends BalenaError { | ||
organizationMembershipRole: string | number; | ||
constructor(organizationMembershipRole: string | number); | ||
} | ||
/** | ||
* @summary Balena application membership role not found | ||
@@ -149,0 +164,0 @@ * @class |
@@ -18,3 +18,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.BalenaInvalidParameterError = exports.BalenaNotLoggedIn = exports.BalenaRequestError = exports.BalenaKeyNotFound = exports.BalenaAmbiguousRelease = exports.BalenaAmbiguousApplication = exports.BalenaAmbiguousDevice = exports.BalenaOrganizationNotFound = exports.BalenaDeviceNotFound = exports.BalenaServiceNotFound = exports.BalenaImageNotFound = exports.BalenaApplicationMembershipRoleNotFound = exports.BalenaReleaseNotFound = exports.BalenaApplicationNotFound = exports.BalenaExpiredToken = exports.BalenaSupervisorLockedError = exports.BalenaMalformedToken = exports.BalenaDiscontinuedDeviceType = exports.BalenaInvalidDeviceType = exports.BalenaInvalidLoginCredentials = exports.BalenaTooManyRequests = exports.BalenaError = void 0; | ||
exports.BalenaInvalidParameterError = exports.BalenaNotLoggedIn = exports.BalenaRequestError = exports.BalenaKeyNotFound = exports.BalenaAmbiguousRelease = exports.BalenaAmbiguousApplication = exports.BalenaAmbiguousDevice = exports.BalenaOrganizationNotFound = exports.BalenaDeviceNotFound = exports.BalenaServiceNotFound = exports.BalenaImageNotFound = exports.BalenaApplicationMembershipRoleNotFound = exports.BalenaOrganizationMembershipRoleNotFound = exports.BalenaReleaseNotFound = exports.BalenaApplicationNotFound = exports.BalenaExpiredToken = exports.BalenaSupervisorLockedError = exports.BalenaMalformedToken = exports.BalenaDiscontinuedDeviceType = exports.BalenaInvalidDeviceType = exports.BalenaInvalidLoginCredentials = exports.BalenaTooManyRequests = exports.BalenaError = void 0; | ||
/** | ||
@@ -203,2 +203,22 @@ * @module errors | ||
/** | ||
* @summary Balena organization membership role not found | ||
* @class | ||
* @public | ||
* | ||
* @param {(String|Number)} organizationMembershipRole - organization membership role name or id | ||
* @return {Error} error instance | ||
* | ||
* @example | ||
* throw new errors.BalenaOrganizationMembershipRoleNotFound(123) | ||
*/ | ||
class BalenaOrganizationMembershipRoleNotFound extends BalenaError { | ||
constructor(organizationMembershipRole) { | ||
super(`Organization membership role not found: ${organizationMembershipRole}`); | ||
this.organizationMembershipRole = organizationMembershipRole; | ||
} | ||
} | ||
exports.BalenaOrganizationMembershipRoleNotFound = BalenaOrganizationMembershipRoleNotFound; | ||
BalenaOrganizationMembershipRoleNotFound.prototype.code = | ||
'BalenaOrganizationMembershipRoleNotFound'; | ||
/** | ||
* @summary Balena application membership role not found | ||
@@ -205,0 +225,0 @@ * @class |
@@ -8,2 +8,7 @@ # Change Log | ||
# v4.6.0 | ||
## (2020-09-24) | ||
* Add Organization membership role not found error [Amit Solanki] | ||
# v4.5.1 | ||
@@ -10,0 +15,0 @@ ## (2020-09-10) |
{ | ||
"name": "balena-errors", | ||
"version": "4.5.1", | ||
"version": "4.6.0-org-membership-role-not-found-b709b51005f202a21b17a481d0f7e1547523e827", | ||
"description": "Collection of Balena JavaScript errors", | ||
@@ -5,0 +5,0 @@ "main": "build/errors.js", |
@@ -53,2 +53,4 @@ balena-errors | ||
* [new BalenaReleaseNotFound(release)](#new_module_errors..BalenaReleaseNotFound_new) | ||
* [~BalenaOrganizationMembershipRoleNotFound](#module_errors..BalenaOrganizationMembershipRoleNotFound) | ||
* [new BalenaOrganizationMembershipRoleNotFound(organizationMembershipRole)](#new_module_errors..BalenaOrganizationMembershipRoleNotFound_new) | ||
* [~BalenaApplicationMembershipRoleNotFound](#module_errors..BalenaApplicationMembershipRoleNotFound) | ||
@@ -238,2 +240,21 @@ * [new BalenaApplicationMembershipRoleNotFound(applicationMembershipRole)](#new_module_errors..BalenaApplicationMembershipRoleNotFound_new) | ||
``` | ||
<a name="module_errors..BalenaOrganizationMembershipRoleNotFound"></a> | ||
### errors~BalenaOrganizationMembershipRoleNotFound | ||
**Kind**: inner class of [<code>errors</code>](#module_errors) | ||
**Summary**: Balena organization membership role not found | ||
**Access**: public | ||
<a name="new_module_errors..BalenaOrganizationMembershipRoleNotFound_new"></a> | ||
#### new BalenaOrganizationMembershipRoleNotFound(organizationMembershipRole) | ||
**Returns**: <code>Error</code> - error instance | ||
| Param | Type | Description | | ||
| --- | --- | --- | | ||
| organizationMembershipRole | <code>String</code> \| <code>Number</code> | organization membership role name or id | | ||
**Example** | ||
```js | ||
throw new errors.BalenaOrganizationMembershipRoleNotFound(123) | ||
``` | ||
<a name="module_errors..BalenaApplicationMembershipRoleNotFound"></a> | ||
@@ -240,0 +261,0 @@ |
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
60428
798
493
1