balena-errors
Advanced tools
Comparing version 4.3.2 to 4.4.0-membership-error-ae5f4d09167b7c4bb98ec840ab9c9673e9326b3c
@@ -119,2 +119,17 @@ /** | ||
/** | ||
* @summary Balena application membership role not found | ||
* @class | ||
* @public | ||
* | ||
* @param {(String|Number)} membershipRole - membership role name or id | ||
* @return {Error} error instance | ||
* | ||
* @example | ||
* throw new errors.BalenaMembershipRoleNotFound(123) | ||
*/ | ||
export declare class BalenaMembershipRoleNotFound extends BalenaError { | ||
membershipRole: string | number; | ||
constructor(membershipRole: string | number); | ||
} | ||
/** | ||
* @summary Balena image not found | ||
@@ -121,0 +136,0 @@ * @class |
@@ -165,2 +165,21 @@ "use strict"; | ||
/** | ||
* @summary Balena application membership role not found | ||
* @class | ||
* @public | ||
* | ||
* @param {(String|Number)} membershipRole - membership role name or id | ||
* @return {Error} error instance | ||
* | ||
* @example | ||
* throw new errors.BalenaMembershipRoleNotFound(123) | ||
*/ | ||
class BalenaMembershipRoleNotFound extends BalenaError { | ||
constructor(membershipRole) { | ||
super(`Application membership role not found: ${membershipRole}`); | ||
this.membershipRole = membershipRole; | ||
} | ||
} | ||
exports.BalenaMembershipRoleNotFound = BalenaMembershipRoleNotFound; | ||
BalenaMembershipRoleNotFound.prototype.code = 'BalenaMembershipRoleNotFound'; | ||
/** | ||
* @summary Balena image not found | ||
@@ -167,0 +186,0 @@ * @class |
@@ -8,2 +8,7 @@ # Change Log | ||
# v4.4.0 | ||
## (2020-04-29) | ||
* Add Application membership role not found error [Amit Solanki] | ||
# v4.3.2 | ||
@@ -10,0 +15,0 @@ ## (2020-04-03) |
{ | ||
"name": "balena-errors", | ||
"version": "4.3.2", | ||
"version": "4.4.0-membership-error-ae5f4d09167b7c4bb98ec840ab9c9673e9326b3c", | ||
"description": "Collection of Balena JavaScript errors", | ||
@@ -5,0 +5,0 @@ "main": "build/errors.js", |
@@ -50,2 +50,4 @@ balena-errors | ||
* [new BalenaReleaseNotFound(release)](#new_module_errors..BalenaReleaseNotFound_new) | ||
* [~BalenaMembershipRoleNotFound](#module_errors..BalenaMembershipRoleNotFound) | ||
* [new BalenaMembershipRoleNotFound(membershipRole)](#new_module_errors..BalenaMembershipRoleNotFound_new) | ||
* [~BalenaImageNotFound](#module_errors..BalenaImageNotFound) | ||
@@ -208,2 +210,21 @@ * [new BalenaImageNotFound(image)](#new_module_errors..BalenaImageNotFound_new) | ||
``` | ||
<a name="module_errors..BalenaMembershipRoleNotFound"></a> | ||
### errors~BalenaMembershipRoleNotFound | ||
**Kind**: inner class of [<code>errors</code>](#module_errors) | ||
**Summary**: Balena application membership role not found | ||
**Access**: public | ||
<a name="new_module_errors..BalenaMembershipRoleNotFound_new"></a> | ||
#### new BalenaMembershipRoleNotFound(membershipRole) | ||
**Returns**: <code>Error</code> - error instance | ||
| Param | Type | Description | | ||
| --- | --- | --- | | ||
| membershipRole | <code>String</code> \| <code>Number</code> | membership role name or id | | ||
**Example** | ||
```js | ||
throw new errors.BalenaMembershipRoleNotFound(123) | ||
``` | ||
<a name="module_errors..BalenaImageNotFound"></a> | ||
@@ -210,0 +231,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
53122
695
444
1