Browse Source
* [PM-1348] switch to asymmetric key for aws encrypt/decrypt * [PM-1348] provide setting to use symmetric key on aws * [PM-1348] import system for exceptions * [PM-1348] add InvalidKeyTypeException * [PM-1348] allow InvalidKeyTypeException to be serializable * [PM-1348] add context to exception message * [PM-1348] actually add context to exception messagepull/37/head
5 changed files with 56 additions and 8 deletions
@ -0,0 +1,20 @@
@@ -0,0 +1,20 @@
|
||||
using System; |
||||
using System.Runtime.Serialization; |
||||
|
||||
namespace Bit.KeyConnector.Exceptions |
||||
{ |
||||
[Serializable] |
||||
public class InvalidKeyTypeException : Exception |
||||
{ |
||||
public InvalidKeyTypeException() |
||||
: base("This type of key cannot perform this action.") { } |
||||
|
||||
public InvalidKeyTypeException(string message) : base(message) { } |
||||
|
||||
public InvalidKeyTypeException(string message, Exception innerException) |
||||
: base(message, innerException) { } |
||||
|
||||
protected InvalidKeyTypeException(SerializationInfo info, StreamingContext context) |
||||
: base(info, context) { } |
||||
} |
||||
} |
||||
Loading…
Reference in new issue