internal IdSiteRuntimeException(DefaultError error)
     : base(error)
 {
     if (!Supports(error))
     {
         throw new ArgumentException("Error type not supported; must be one of: " + string.Join(",", SupportedErrors));
     }
 }
 internal InvalidIdSiteTokenException(DefaultError error)
     : base(error)
 {
 }
 internal IdSiteSessionTimeoutException(DefaultError error)
     : base(error)
 {
 }
 internal ResourceException(DefaultError error)
     : base(error.Message)
 {
     this.Error = error;
     this.constructedErrorMessage = BuildExceptionMessage(error);
 }