Socket
Socket
Sign inDemoInstall

@spinajs/exceptions

Package Overview
Dependencies
Maintainers
1
Versions
217
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spinajs/exceptions - npm Package Compare versions

Comparing version 1.0.1 to 1.0.3

26

lib/index.d.ts

@@ -14,3 +14,3 @@ /**

*/
export declare class NotSupportedException extends Exception {
export declare class NotSupported extends Exception {
}

@@ -20,3 +20,3 @@ /**

*/
export declare class ArgumentException extends Exception {
export declare class InvalidArgument extends Exception {
}

@@ -26,3 +26,3 @@ /**

*/
export declare class InvalidOperationException extends Exception {
export declare class InvalidOperation extends Exception {
}

@@ -32,3 +32,3 @@ /**

*/
export declare class AuthenticationException extends Exception {
export declare class AuthenticationFailed extends Exception {
}

@@ -38,3 +38,3 @@ /**

*/
export declare class BadRequestException extends Exception {
export declare class BadRequest extends Exception {
}

@@ -45,3 +45,3 @@ /**

*/
export declare class ForbiddenException extends Exception {
export declare class Forbidden extends Exception {
}

@@ -51,3 +51,3 @@ /**

*/
export declare class IOException extends Exception {
export declare class IOFail extends Exception {
}

@@ -57,3 +57,3 @@ /**

*/
export declare class NotFoundException extends Exception {
export declare class ResourceNotFound extends Exception {
}

@@ -63,3 +63,3 @@ /**

*/
export declare class NotImplementedException extends Exception {
export declare class MethodNotImplemented extends Exception {
}

@@ -69,3 +69,3 @@ /**

*/
export declare class ServerErrorException extends Exception {
export declare class UnexpectedServerError extends Exception {
}

@@ -75,3 +75,3 @@ /**

*/
export declare class ValidationException extends Exception {
export declare class ValidationFailed extends Exception {
Errors: any;

@@ -83,3 +83,3 @@ constructor(message: string, validationErrors: any);

*/
export declare class NotAcceptedException extends Exception {
export declare class JsonValidationFailed extends Exception {
}

@@ -90,3 +90,3 @@ /**

*/
export declare class NotAcceptableException extends Exception {
export declare class ExpectedResponseUnacceptable extends Exception {
}

@@ -19,29 +19,29 @@ "use strict";

*/
class NotSupportedException extends Exception {
class NotSupported extends Exception {
}
exports.NotSupportedException = NotSupportedException;
exports.NotSupported = NotSupported;
/**
* Exception thrown when argument passed to function is invalid eg. out of range
*/
class ArgumentException extends Exception {
class InvalidArgument extends Exception {
}
exports.ArgumentException = ArgumentException;
exports.InvalidArgument = InvalidArgument;
/**
* The exception that is thrown when a method call is invalid for the object's current state.
*/
class InvalidOperationException extends Exception {
class InvalidOperation extends Exception {
}
exports.InvalidOperationException = InvalidOperationException;
exports.InvalidOperation = InvalidOperation;
/**
* Exception is thrown when authentication fails eg. user credentials are invalid
*/
class AuthenticationException extends Exception {
class AuthenticationFailed extends Exception {
}
exports.AuthenticationException = AuthenticationException;
exports.AuthenticationFailed = AuthenticationFailed;
/**
* Exception is thrown when request data are invalid
*/
class BadRequestException extends Exception {
class BadRequest extends Exception {
}
exports.BadRequestException = BadRequestException;
exports.BadRequest = BadRequest;
/**

@@ -51,33 +51,33 @@ * Exception indicating that an access to resource by a client has been forbidden by the server

*/
class ForbiddenException extends Exception {
class Forbidden extends Exception {
}
exports.ForbiddenException = ForbiddenException;
exports.Forbidden = Forbidden;
/**
* Exception thrown when there was error with IO operations ie. not accessible file
*/
class IOException extends Exception {
class IOFail extends Exception {
}
exports.IOException = IOException;
exports.IOFail = IOFail;
/**
* The exception that is thrown when resource is not found eg. model in database or missing file
*/
class NotFoundException extends Exception {
class ResourceNotFound extends Exception {
}
exports.NotFoundException = NotFoundException;
exports.ResourceNotFound = ResourceNotFound;
/**
* The exception that is thrown when method is not implemented
*/
class NotImplementedException extends Exception {
class MethodNotImplemented extends Exception {
}
exports.NotImplementedException = NotImplementedException;
exports.MethodNotImplemented = MethodNotImplemented;
/**
* The exception that is thrown when strange things happends in server eg. generic server error
*/
class ServerErrorException extends Exception {
class UnexpectedServerError extends Exception {
}
exports.ServerErrorException = ServerErrorException;
exports.UnexpectedServerError = UnexpectedServerError;
/**
* The exception that is thrown when JSON entity is checked against schema and is invalid
*/
class ValidationException extends Exception {
class ValidationFailed extends Exception {
constructor(message, validationErrors) {

@@ -88,9 +88,9 @@ super(message);

}
exports.ValidationException = ValidationException;
exports.ValidationFailed = ValidationFailed;
/**
* The exception that is thrown when JSON entity is checked against schema and is invalid
*/
class NotAcceptedException extends Exception {
class JsonValidationFailed extends Exception {
}
exports.NotAcceptedException = NotAcceptedException;
exports.JsonValidationFailed = JsonValidationFailed;
/**

@@ -100,5 +100,5 @@ * The exception that is thrown if app not supports requestes `Accept` header eg. if client wants

*/
class NotAcceptableException extends Exception {
class ExpectedResponseUnacceptable extends Exception {
}
exports.NotAcceptableException = NotAcceptableException;
exports.ExpectedResponseUnacceptable = ExpectedResponseUnacceptable;
//# sourceMappingURL=index.js.map
{
"name": "@spinajs/exceptions",
"version": "1.0.1",
"version": "1.0.3",
"description": "exceptions definitions used all across framework modules",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc