/**
 * PortNotFoundException
 *
 * Thrown when a port is not found in the database
 */

export class PortNotFoundException extends Error {
  constructor(public readonly portCode: string) {
    super(`Port not found: ${portCode}`);
    this.name = 'PortNotFoundException';
    Object.setPrototypeOf(this, PortNotFoundException.prototype);
  }
}
