Dotnet
Current User

Solution - Invalid Credentials Exception

Mute
Current Time 0:00
/
Duration Time 0:00
Loaded: 0%
Progress: 0%
Stream TypeLIVE
Remaining Time -0:00
 
PRO

Solution: Add InvalidCredentialsException Class

In the Conduit.Models Project

In the Conduit.Models.Exceptions Namespace
  • Add a new class called InvalidCredentialsException
  • [Remove and Sort Usings]
  • Add a constructor that recieves a string parameter called message
  • Pass it along to the base class

Here's the code for the InvalidCredentialsException.cs file:

using System;

namespace Conduit.Models.Exceptions
{
    public class InvalidCredentialsException : Exception
    {
        public InvalidCredentialsException(string message) : base(message)
        {

        }
    }
}
 

I finished! On to the next chapter