| 1 |
/** |
| 2 |
* ContentNotFoundError error. |
| 3 |
* |
| 4 |
* @param {string} contentKey target not found content key |
| 5 |
*/ |
| 6 |
function ContentNotFoundError(contentKey) { |
| 7 |
this.name = "ContentNotFoundError"; |
| 8 |
this.message = `Content not found for key: [${contentKey}]`; |
| 9 |
} |
| 10 |
|
| 11 |
ContentNotFoundError.prototype = Object.create(Error.prototype); |
| 12 |
|
| 13 |
/** |
| 14 |
* @module ContentNotFound |
| 15 |
*/ |
| 16 |
export default ContentNotFoundError; |
| 17 |
|