Home Manual Reference Source Repository
import {AbstractClassError} from '@mapcreator/api/src/errors/AbstractError.js'
public class | source

AbstractClassError

Extends:

ErrorAbstractError → AbstractClassError

Thrown upon invocation of an abstract class

Example:

class FooBar {
  constructor() {
    if (this.constructor === FooBar) {
      throw new AbstractClassError();
    }
  }
}

Constructor Summary

Public Constructor
public

Public Constructors

public constructor() source

AbstractError constructor

Override:

AbstractError#constructor