This commit is contained in:
Александр Тороп
2024-03-30 18:27:37 +03:00
commit 038bf44010
2765 changed files with 293753 additions and 0 deletions

9
node_modules/glpi-api/errors/FileNotReadableError.js generated vendored Normal file
View File

@@ -0,0 +1,9 @@
class FileNotReadableError extends Error {
constructor(message) {
super(message);
this.name = this.constructor.name;
Error.captureStackTrace(this, this.constructor);
}
}
module.exports = FileNotReadableError;

9
node_modules/glpi-api/errors/InvalidAPIURLError.js generated vendored Normal file
View File

@@ -0,0 +1,9 @@
class InvalidAPIURLError extends Error {
constructor(message) {
super(message);
this.name = this.constructor.name;
Error.captureStackTrace(this, this.constructor);
}
}
module.exports = InvalidAPIURLError;

View File

@@ -0,0 +1,9 @@
class InvalidHTTPMethodError extends Error {
constructor(message) {
super(message);
this.name = this.constructor.name;
Error.captureStackTrace(this, this.constructor);
}
}
module.exports = InvalidHTTPMethodError;

9
node_modules/glpi-api/errors/InvalidItemTypeError.js generated vendored Normal file
View File

@@ -0,0 +1,9 @@
class InvalidItemTypeError extends Error {
constructor(message) {
super(message);
this.name = this.constructor.name;
Error.captureStackTrace(this, this.constructor);
}
}
module.exports = InvalidItemTypeError;

View File

@@ -0,0 +1,9 @@
class InvalidParameterError extends Error {
constructor(message) {
super(message);
this.name = this.constructor.name;
Error.captureStackTrace(this, this.constructor);
}
}
module.exports = InvalidParameterError;

9
node_modules/glpi-api/errors/MissingAPIURLError.js generated vendored Normal file
View File

@@ -0,0 +1,9 @@
class MissingAPIURLError extends Error {
constructor(message) {
super(message);
this.name = this.constructor.name;
Error.captureStackTrace(this, this.constructor);
}
}
module.exports = MissingAPIURLError;

9
node_modules/glpi-api/errors/MissingAppTokenError.js generated vendored Normal file
View File

@@ -0,0 +1,9 @@
class MissingAppTokenError extends Error {
constructor(message) {
super(message);
this.name = this.constructor.name;
Error.captureStackTrace(this, this.constructor);
}
}
module.exports = MissingAppTokenError;

View File

@@ -0,0 +1,9 @@
class MissingAuthorizationError extends Error {
constructor(message) {
super(message);
this.name = this.constructor.name;
Error.captureStackTrace(this, this.constructor);
}
}
module.exports = MissingAuthorizationError;

9
node_modules/glpi-api/errors/MissingHATEOASError.js generated vendored Normal file
View File

@@ -0,0 +1,9 @@
class MissingHATEOASError extends Error {
constructor(message) {
super(message);
this.name = this.constructor.name;
Error.captureStackTrace(this, this.constructor);
}
}
module.exports = MissingHATEOASError;

9
node_modules/glpi-api/errors/MissingItemTypeError.js generated vendored Normal file
View File

@@ -0,0 +1,9 @@
class MissingItemTypeError extends Error {
constructor(message) {
super(message);
this.name = this.constructor.name;
Error.captureStackTrace(this, this.constructor);
}
}
module.exports = MissingItemTypeError;

17
node_modules/glpi-api/errors/ServerError.js generated vendored Normal file
View File

@@ -0,0 +1,17 @@
class ServerError extends Error {
constructor(message, code, comment) {
if (message instanceof Error && message.response) {
code = message.response.statusCode;
comment = message.response.body[1];
message = message.response.body[0];
}
super(message);
this.name = this.constructor.name;
Error.captureStackTrace(this, this.constructor);
this.code = code || 500;
this.comment = comment;
}
}
module.exports = ServerError;

9
node_modules/glpi-api/errors/SessionNotFoundError.js generated vendored Normal file
View File

@@ -0,0 +1,9 @@
class SessionNotFoundError extends Error {
constructor(message) {
super(message);
this.name = this.constructor.name;
Error.captureStackTrace(this, this.constructor);
}
}
module.exports = SessionNotFoundError;