CarotDav_decompile/CarotDAV/MasterPasswordException.cs

37 lines
996 B
C#

// Decompiled with JetBrains decompiler
// Type: CarotDAV.MasterPasswordException
// Assembly: CarotDAV, Version=1.13.2.18337, Culture=neutral, PublicKeyToken=null
// MVID: C31F2651-A4A8-4D09-916A-8C6106F5E7C8
// Assembly location: F:\Eigene Dateien\Dropbox\portable Collection\Progs\CarotDAV\CarotDAV.exe
using Microsoft.VisualBasic;
using Microsoft.VisualBasic.CompilerServices;
using System;
namespace CarotDAV
{
public class MasterPasswordException : Exception
{
private bool pPasswordInvalid;
public bool PasswordInvalid
{
get
{
return this.pPasswordInvalid;
}
}
public MasterPasswordException()
: base("Needs Master Password or Given Master Password invalid")
{
}
public MasterPasswordException(bool passwordinvalid)
: base(Conversions.ToString(Interaction.IIf(passwordinvalid, (object) "Password invalid", (object) "Needs Master Password")))
{
this.pPasswordInvalid = passwordinvalid;
}
}
}