diff --git a/src/module/errors.js b/src/module/errors.js new file mode 100644 index 0000000..ff7ddec --- /dev/null +++ b/src/module/errors.js @@ -0,0 +1,13 @@ +/** + * Placeholder class for an error that is thrown when a ship is placed + * in an invalid position. + * @extends Error + */ +export class InvalidShipPlacementError extends Error {} + +/** + * Error thrown when the program tries to advance the state, but it is + * invalid. + * @extends Error + */ +export class InvalidAdvanceStateError extends Error {}