MitocGroup/deep-framework

View on GitHub
src/deep-db/lib/Vogels/Exceptions/UndefinedMethodException.js

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * Created by Stefan Hariton on 6/26/15.
 */

'use strict';

import {Exception} from './Exception';

/**
 * Thrown when undefined method is requested
 */
export class UndefinedMethodException extends Exception {
  /**
   * @param {String} name
   * @param {String[]} availableMethods
   */
  constructor(name, availableMethods) {
    super(`Method: ${name} does not exist. Available methods:${availableMethods}).`);
  }
}