>FromYourCode();

Source code quote in C#284

 19 June, 2016 at 01:30
var _message = "";
public NetiDException(string message) : base(message)
		{

            var log = new Logger(GetType().FullName);
            log.Debug("NetiDException Message: " + message);

			_message = message;

            //TODO: What is this? A switch with one case that returns the exact same message? Commented this out and just return the message until we know why the swith has been put there.

            //if (message.StartsWith("CKR_"))
            //{
            //    // This is a PKCS#11 error
            //    switch (message)
            //    {
            //        case "CKR_ATTRIBUTE_VALUE_INVALID":
            //            _message = "CKR_ATTRIBUTE_VALUE_INVALID";
break;
        }
    }
}

Check similar quotes

Share this quote