summary refs log tree commit diff
path: root/crypto/src/asn1/cmp/CertRepMessage.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2015-11-21 23:43:35 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2015-11-21 23:43:35 +0700
commit304725950a7a51a3e4d67e214c0e0d8238301d60 (patch)
tree8c3f73288f999db888d70f522e10f33486935a06 /crypto/src/asn1/cmp/CertRepMessage.cs
parentMerge branch 'master' of git.bouncycastle.org:bc-csharp into pcl (diff)
parentAdd Platform method for getting the type name of an object (diff)
downloadBouncyCastle.NET-ed25519-304725950a7a51a3e4d67e214c0e0d8238301d60.tar.xz
Merge branch 'master' of git.bouncycastle.org:bc-csharp into pcl
Diffstat (limited to 'crypto/src/asn1/cmp/CertRepMessage.cs')
-rw-r--r--crypto/src/asn1/cmp/CertRepMessage.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/src/asn1/cmp/CertRepMessage.cs b/crypto/src/asn1/cmp/CertRepMessage.cs

index c22b079c8..82869784d 100644 --- a/crypto/src/asn1/cmp/CertRepMessage.cs +++ b/crypto/src/asn1/cmp/CertRepMessage.cs
@@ -1,5 +1,7 @@ using System; +using Org.BouncyCastle.Utilities; + namespace Org.BouncyCastle.Asn1.Cmp { public class CertRepMessage @@ -28,7 +30,7 @@ namespace Org.BouncyCastle.Asn1.Cmp if (obj is Asn1Sequence) return new CertRepMessage((Asn1Sequence)obj); - throw new ArgumentException("Invalid object: " + obj.GetType().Name, "obj"); + throw new ArgumentException("Invalid object: " + Platform.GetTypeName(obj), "obj"); } public CertRepMessage(CmpCertificate[] caPubs, CertResponse[] response)