operationError.js (1140B)
1 export class OperationError { 2 constructor() { 3 this.type = "OperationError"; 4 } 5 } 6 export class DivisionByZeroError extends OperationError { 7 toString() { 8 return "Cannot divide by zero"; 9 } 10 } 11 export class ComplexNumberError extends OperationError { 12 toString() { 13 return "Operation returned complex result"; 14 } 15 } 16 export class InfinityError extends OperationError { 17 toString() { 18 return "Operation returned positive infinity"; 19 } 20 } 21 export class NegativeInfinityError extends OperationError { 22 toString() { 23 return "Operation returned negative infinity"; 24 } 25 } 26 export class SampleMapNeedsNtoNFunction extends OperationError { 27 toString() { 28 return "SampleMap needs a function that converts a number to a number"; 29 } 30 } 31 export class PdfInvalidError extends OperationError { 32 toString() { 33 return "This Pdf is invalid"; 34 } 35 } 36 export class OtherOperationError extends OperationError { 37 constructor(value) { 38 super(); 39 this.value = value; 40 } 41 toString() { 42 return this.value; 43 } 44 } 45 //# sourceMappingURL=operationError.js.map