@tsdotnet/exceptions
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -7,6 +7,5 @@ /*! | ||
import ArgumentException from './ArgumentException'; | ||
export declare class ArgumentNullException extends ArgumentException { | ||
export default class ArgumentNullException extends ArgumentException { | ||
constructor(paramName: string, message?: string, innerException?: any); | ||
protected getName(): string; | ||
} | ||
export default ArgumentNullException; |
@@ -8,3 +8,3 @@ /*! | ||
const NAME = 'ArgumentNullException'; | ||
export class ArgumentNullException extends ArgumentException { | ||
export default class ArgumentNullException extends ArgumentException { | ||
constructor(paramName, message = (paramName || 'Argument ') + 'is null (or undefined).', innerException) { | ||
@@ -17,3 +17,2 @@ super(paramName, message, innerException); | ||
} | ||
export default ArgumentNullException; | ||
//# sourceMappingURL=ArgumentNullException.js.map |
@@ -8,3 +8,3 @@ /*! | ||
declare type Primitive = string | number | boolean; | ||
export declare class ArgumentOutOfRangeException extends ArgumentException { | ||
export default class ArgumentOutOfRangeException extends ArgumentException { | ||
readonly actualValue: Primitive | null | undefined; | ||
@@ -14,2 +14,2 @@ constructor(paramName: string, actualValue: Primitive | null | undefined, message?: string, innerException?: Error); | ||
} | ||
export default ArgumentOutOfRangeException; | ||
export {}; |
@@ -8,3 +8,3 @@ /*! | ||
const NAME = 'ArgumentOutOfRangeException'; | ||
export class ArgumentOutOfRangeException extends ArgumentException { | ||
export default class ArgumentOutOfRangeException extends ArgumentException { | ||
constructor(paramName, actualValue, message = ' ', innerException) { | ||
@@ -18,3 +18,2 @@ super(paramName, `(${actualValue}) ` + message, innerException); | ||
} | ||
export default ArgumentOutOfRangeException; | ||
//# sourceMappingURL=ArgumentOutOfRangeException.js.map |
@@ -7,5 +7,4 @@ /*! | ||
import SystemException from './SystemException'; | ||
export declare class InvalidOperationException extends SystemException { | ||
export default class InvalidOperationException extends SystemException { | ||
protected getName(): string; | ||
} | ||
export default InvalidOperationException; |
@@ -8,3 +8,3 @@ /*! | ||
const NAME = 'InvalidOperationException'; | ||
export class InvalidOperationException extends SystemException { | ||
export default class InvalidOperationException extends SystemException { | ||
getName() { | ||
@@ -14,3 +14,2 @@ return NAME; | ||
} | ||
export default InvalidOperationException; | ||
//# sourceMappingURL=InvalidOperationException.js.map |
@@ -7,5 +7,4 @@ /*! | ||
import SystemException from './SystemException'; | ||
export declare class NotImplementedException extends SystemException { | ||
export default class NotImplementedException extends SystemException { | ||
protected getName(): string; | ||
} | ||
export default NotImplementedException; |
@@ -8,3 +8,3 @@ /*! | ||
const NAME = 'NotImplementedException'; | ||
export class NotImplementedException extends SystemException { | ||
export default class NotImplementedException extends SystemException { | ||
getName() { | ||
@@ -14,3 +14,2 @@ return NAME; | ||
} | ||
export default NotImplementedException; | ||
//# sourceMappingURL=NotImplementedException.js.map |
{ | ||
"name": "@tsdotnet/exceptions", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "author": "electricessence", |
import Exception from '../src/Exception'; | ||
import ArgumentException from '../src/ArgumentException'; | ||
const message = 'Test'; | ||
// test import and compilation. | ||
new ArgumentException('x', message); | ||
describe('Error', () => { | ||
@@ -6,0 +10,0 @@ it('instanceof should work', () => { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21146
375