Home Manual Reference Source
import {AbstractClassError} from '@mapcreator/maps4news/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