You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
516 B

/** @module errors */
/**
* 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 {}
/**
* Error thrown when a missile is fired at an invalid cell.
* @extends Error
*/
export class InvalidMissileFireAttemptError extends Error {}