lib/Vogels/Exceptions/InvalidArgumentException.js
/**
* Created by Stefan Hariton on 6/26/15.
*/
'use strict';
import {Exception} from './Exception';
/**
* Thrown when invalid argument provided
*/
export class InvalidArgumentException extends Exception {
/**
* @param {*} argument
* @param {String} meantType
*/
constructor(argument, meantType) {
let argumentType = typeof argument;
super(`Invalid argument ${argument} of type ${argumentType} provided (meant ${meantType}).`);
}
}