@bayou/util-core
Advanced tools
Comparing version 1.0.6 to 1.2.4
@@ -1,2 +0,2 @@ | ||
// Copyright 2016-2018 the Bayou Authors (Dan Bornstein et alia). | ||
// Copyright 2016-2019 the Bayou Authors (Dan Bornstein et alia). | ||
// Licensed AS IS and WITHOUT WARRANTY under the Apache License, | ||
@@ -3,0 +3,0 @@ // Version 2.0. Details: <http://www.apache.org/licenses/LICENSE-2.0> |
@@ -1,2 +0,2 @@ | ||
// Copyright 2016-2018 the Bayou Authors (Dan Bornstein et alia). | ||
// Copyright 2016-2019 the Bayou Authors (Dan Bornstein et alia). | ||
// Licensed AS IS and WITHOUT WARRANTY under the Apache License, | ||
@@ -3,0 +3,0 @@ // Version 2.0. Details: <http://www.apache.org/licenses/LICENSE-2.0> |
@@ -1,2 +0,2 @@ | ||
// Copyright 2016-2018 the Bayou Authors (Dan Bornstein et alia). | ||
// Copyright 2016-2019 the Bayou Authors (Dan Bornstein et alia). | ||
// Licensed AS IS and WITHOUT WARRANTY under the Apache License, | ||
@@ -3,0 +3,0 @@ // Version 2.0. Details: <http://www.apache.org/licenses/LICENSE-2.0> |
@@ -1,2 +0,2 @@ | ||
// Copyright 2016-2018 the Bayou Authors (Dan Bornstein et alia). | ||
// Copyright 2016-2019 the Bayou Authors (Dan Bornstein et alia). | ||
// Licensed AS IS and WITHOUT WARRANTY under the Apache License, | ||
@@ -60,2 +60,20 @@ // Version 2.0. Details: <http://www.apache.org/licenses/LICENSE-2.0> | ||
/** | ||
* Constructs an instance which indicates that a function, class, or module | ||
* has received an invalid string ID of some sort (e.g. a file ID, document | ||
* ID, etc.). The error includes the ID in question. | ||
* | ||
* This error is typically used to report a problem that crosses a line of | ||
* responsibility. | ||
* | ||
* @param {Error} [cause] Error which caused this problem. **Note:** It is | ||
* optional. If the first argument isn't an `Error`, then it is taken to be | ||
* the `message`. | ||
* @param {string} id The ID in question. | ||
* @returns {InfoError} An appropriately-constructed error. | ||
*/ | ||
static badId(cause, id) { | ||
return Errors._make('badId', cause, id); | ||
} | ||
/** | ||
* Constructs an instance which indicates that a function, class, or module is | ||
@@ -187,2 +205,12 @@ * somehow being misused. The error includes a human-oriented description of | ||
/** | ||
* Indicates whether or not the given error is a `badId`. | ||
* | ||
* @param {Error} error Error in question. | ||
* @returns {boolean} `true` iff it represents an ID problem. | ||
*/ | ||
static is_badId(error) { | ||
return InfoError.hasName(error, 'badId'); | ||
} | ||
/** | ||
* Indicates whether or not the given error is a `revisionNotAvailable`. | ||
@@ -189,0 +217,0 @@ * |
@@ -1,2 +0,2 @@ | ||
// Copyright 2016-2018 the Bayou Authors (Dan Bornstein et alia). | ||
// Copyright 2016-2019 the Bayou Authors (Dan Bornstein et alia). | ||
// Licensed AS IS and WITHOUT WARRANTY under the Apache License, | ||
@@ -3,0 +3,0 @@ // Version 2.0. Details: <http://www.apache.org/licenses/LICENSE-2.0> |
@@ -1,2 +0,2 @@ | ||
// Copyright 2016-2018 the Bayou Authors (Dan Bornstein et alia). | ||
// Copyright 2016-2019 the Bayou Authors (Dan Bornstein et alia). | ||
// Licensed AS IS and WITHOUT WARRANTY under the Apache License, | ||
@@ -3,0 +3,0 @@ // Version 2.0. Details: <http://www.apache.org/licenses/LICENSE-2.0> |
@@ -1,2 +0,2 @@ | ||
// Copyright 2016-2018 the Bayou Authors (Dan Bornstein et alia). | ||
// Copyright 2016-2019 the Bayou Authors (Dan Bornstein et alia). | ||
// Licensed AS IS and WITHOUT WARRANTY under the Apache License, | ||
@@ -3,0 +3,0 @@ // Version 2.0. Details: <http://www.apache.org/licenses/LICENSE-2.0> |
@@ -1,2 +0,2 @@ | ||
// Copyright 2016-2018 the Bayou Authors (Dan Bornstein et alia). | ||
// Copyright 2016-2019 the Bayou Authors (Dan Bornstein et alia). | ||
// Licensed AS IS and WITHOUT WARRANTY under the Apache License, | ||
@@ -3,0 +3,0 @@ // Version 2.0. Details: <http://www.apache.org/licenses/LICENSE-2.0> |
@@ -1,2 +0,2 @@ | ||
// Copyright 2016-2018 the Bayou Authors (Dan Bornstein et alia). | ||
// Copyright 2016-2019 the Bayou Authors (Dan Bornstein et alia). | ||
// Licensed AS IS and WITHOUT WARRANTY under the Apache License, | ||
@@ -3,0 +3,0 @@ // Version 2.0. Details: <http://www.apache.org/licenses/LICENSE-2.0> |
@@ -7,3 +7,3 @@ { | ||
"name": "@bayou/util-core", | ||
"version": "1.0.6" | ||
"version": "1.2.4" | ||
} |
@@ -20,5 +20,5 @@ @bayou/util-core | ||
``` | ||
Copyright 2016-2018 the Bayou Authors (Dan Bornstein et alia). | ||
Copyright 2016-2019 the Bayou Authors (Dan Bornstein et alia). | ||
Licensed AS IS and WITHOUT WARRANTY under the Apache License, | ||
Version 2.0. Details: <http://www.apache.org/licenses/LICENSE-2.0> | ||
``` |
@@ -1,2 +0,2 @@ | ||
// Copyright 2016-2018 the Bayou Authors (Dan Bornstein et alia). | ||
// Copyright 2016-2019 the Bayou Authors (Dan Bornstein et alia). | ||
// Licensed AS IS and WITHOUT WARRANTY under the Apache License, | ||
@@ -3,0 +3,0 @@ // Version 2.0. Details: <http://www.apache.org/licenses/LICENSE-2.0> |
@@ -1,2 +0,2 @@ | ||
// Copyright 2016-2018 the Bayou Authors (Dan Bornstein et alia). | ||
// Copyright 2016-2019 the Bayou Authors (Dan Bornstein et alia). | ||
// Licensed AS IS and WITHOUT WARRANTY under the Apache License, | ||
@@ -3,0 +3,0 @@ // Version 2.0. Details: <http://www.apache.org/licenses/LICENSE-2.0> |
@@ -1,2 +0,2 @@ | ||
// Copyright 2016-2018 the Bayou Authors (Dan Bornstein et alia). | ||
// Copyright 2016-2019 the Bayou Authors (Dan Bornstein et alia). | ||
// Licensed AS IS and WITHOUT WARRANTY under the Apache License, | ||
@@ -3,0 +3,0 @@ // Version 2.0. Details: <http://www.apache.org/licenses/LICENSE-2.0> |
@@ -1,2 +0,2 @@ | ||
// Copyright 2016-2018 the Bayou Authors (Dan Bornstein et alia). | ||
// Copyright 2016-2019 the Bayou Authors (Dan Bornstein et alia). | ||
// Licensed AS IS and WITHOUT WARRANTY under the Apache License, | ||
@@ -3,0 +3,0 @@ // Version 2.0. Details: <http://www.apache.org/licenses/LICENSE-2.0> |
@@ -1,2 +0,2 @@ | ||
// Copyright 2016-2018 the Bayou Authors (Dan Bornstein et alia). | ||
// Copyright 2016-2019 the Bayou Authors (Dan Bornstein et alia). | ||
// Licensed AS IS and WITHOUT WARRANTY under the Apache License, | ||
@@ -3,0 +3,0 @@ // Version 2.0. Details: <http://www.apache.org/licenses/LICENSE-2.0> |
@@ -1,2 +0,2 @@ | ||
// Copyright 2016-2018 the Bayou Authors (Dan Bornstein et alia). | ||
// Copyright 2016-2019 the Bayou Authors (Dan Bornstein et alia). | ||
// Licensed AS IS and WITHOUT WARRANTY under the Apache License, | ||
@@ -3,0 +3,0 @@ // Version 2.0. Details: <http://www.apache.org/licenses/LICENSE-2.0> |
@@ -1,2 +0,2 @@ | ||
// Copyright 2016-2018 the Bayou Authors (Dan Bornstein et alia). | ||
// Copyright 2016-2019 the Bayou Authors (Dan Bornstein et alia). | ||
// Licensed AS IS and WITHOUT WARRANTY under the Apache License, | ||
@@ -3,0 +3,0 @@ // Version 2.0. Details: <http://www.apache.org/licenses/LICENSE-2.0> |
@@ -1,2 +0,2 @@ | ||
// Copyright 2016-2018 the Bayou Authors (Dan Bornstein et alia). | ||
// Copyright 2016-2019 the Bayou Authors (Dan Bornstein et alia). | ||
// Licensed AS IS and WITHOUT WARRANTY under the Apache License, | ||
@@ -3,0 +3,0 @@ // Version 2.0. Details: <http://www.apache.org/licenses/LICENSE-2.0> |
@@ -1,2 +0,2 @@ | ||
// Copyright 2016-2018 the Bayou Authors (Dan Bornstein et alia). | ||
// Copyright 2016-2019 the Bayou Authors (Dan Bornstein et alia). | ||
// Licensed AS IS and WITHOUT WARRANTY under the Apache License, | ||
@@ -3,0 +3,0 @@ // Version 2.0. Details: <http://www.apache.org/licenses/LICENSE-2.0> |
@@ -1,2 +0,2 @@ | ||
// Copyright 2016-2018 the Bayou Authors (Dan Bornstein et alia). | ||
// Copyright 2016-2019 the Bayou Authors (Dan Bornstein et alia). | ||
// Licensed AS IS and WITHOUT WARRANTY under the Apache License, | ||
@@ -3,0 +3,0 @@ // Version 2.0. Details: <http://www.apache.org/licenses/LICENSE-2.0> |
129772
3596