const JSONRPC = require("jsonrpc-bidirectional");

class Exception extends JSONRPC.Exception
{
	static get INVALID_EMAIL_ADDRESS()
	{
		return 4001;
	}

	static get EMAIL_ADDRESS_ALREADY_USED()
	{
		return 4002;
	}

	static get PASSWORD_COMPLEXITY_TOO_LOW()
	{
		return 4003;
	}

	static get USER_NOT_FOUND()
	{
		return 4004;
	}

	static get USER_TYPE_INVALID()
	{
		return 4005;
	}
};

module.exports = Exception;
