/**
  AuthGW Custom Errors
  @author tylerFowler
**/

/**
  @class InvalidRoleError @extends Error
  @desc Thrown when a role is given that is not in the list of roles
  @param { String } invalidRole
**/
class InvalidRoleError extends Error {
  constructor(invalidRole) {
    super();
    this.name = 'InvalidRoleError';
    this.message = `${invalidRole} is not a valid role`;
  }
}
exports.InvalidRoleError = InvalidRoleError;

@@ -104,9 +104,9 @@
 esc 
-T
+t
 hrow
@@ -175,16 +175,14 @@
 am %7B
- S
+s
 tring
- 
 %7D in
@@ -374,17 +374,17 @@
 %60;%0A  %7D%0A%7D
-%0A
+ 
 exports.
@@ -420,8 +420,922 @@
 eError;%0A
+%0A/**%0A  @class InvalidFlavorError @extends Error%0A  @desc thrown when an invalid middleware/transport flavor is given%0A  @param %7Bstring%7D invalidFlavor%0A  @param %7Bstring%7D ctxt used to identify where the invalid flavor was used%0A**/%0Aclass InvalidFlavorError extends Error %7B%0A  constructor(invalidFlavor, ctxt) %7B%0A    super();%0A    this.name = 'InvalidFlavorError';%0A    this.message = %60$%7BinvalidFlavor%7D is not a valid $%7Bctxt%7D flavor%60;%0A  %7D%0A%7D exports.InvalidFlavorError = InvalidFlavorError;%0A%0A/**%0A  @class InvalidTransportMethodError @extends Error%0A  @desc thrown when an invalid transport method is given%0A  @param %7Bstring%7D invalidMethod%0A**/%0Aclass InvalidTransportMethodError extends Error %7B%0A  constructor(invalidMethod) %7B%0A    super();%0A    this.name = 'InvalidTransportMethodError';%0A    this.message = %60$%7BinvalidMethod%7D is not a valid transport method%60;%0A  %7D%0A%7D exports.InvalidTransportMethodError = InvalidTransportMethodError;%0A

Add custom errors for flavors & transport methods