public class com.mongodb.WriteConcernException extends com.mongodb.MongoServerException
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: com.mongodb.WriteConcernException
  super_class: com.mongodb.MongoServerException
{
  private static final long serialVersionUID;
    descriptor: J
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    ConstantValue: -1100801000476719450

  private final com.mongodb.WriteConcernResult writeConcernResult;
    descriptor: Lcom/mongodb/WriteConcernResult;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final org.bson.BsonDocument response;
    descriptor: Lorg/bson/BsonDocument;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  public void <init>(org.bson.BsonDocument, com.mongodb.ServerAddress, com.mongodb.WriteConcernResult);
    descriptor: (Lorg/bson/BsonDocument;Lcom/mongodb/ServerAddress;Lcom/mongodb/WriteConcernResult;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=7, locals=4, args_size=4
        start local 0 // com.mongodb.WriteConcernException this
        start local 1 // org.bson.BsonDocument response
        start local 2 // com.mongodb.ServerAddress address
        start local 3 // com.mongodb.WriteConcernResult writeConcernResult
         0: .line 46
            aload 0 /* this */
            aload 1 /* response */
            invokestatic com.mongodb.WriteConcernException.extractErrorCode:(Lorg/bson/BsonDocument;)I
         1: .line 47
            ldc "Write failed with error code %d and error message '%s'"
            iconst_2
            anewarray java.lang.Object
            dup
            iconst_0
            aload 1 /* response */
            invokestatic com.mongodb.WriteConcernException.extractErrorCode:(Lorg/bson/BsonDocument;)I
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            dup
            iconst_1
            aload 1 /* response */
            invokestatic com.mongodb.WriteConcernException.extractErrorMessage:(Lorg/bson/BsonDocument;)Ljava/lang/String;
            aastore
            invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
         2: .line 48
            aload 2 /* address */
            invokespecial com.mongodb.MongoServerException.<init>:(ILjava/lang/String;Lcom/mongodb/ServerAddress;)V
         3: .line 49
            aload 0 /* this */
            aload 1 /* response */
            putfield com.mongodb.WriteConcernException.response:Lorg/bson/BsonDocument;
         4: .line 50
            aload 0 /* this */
            aload 3 /* writeConcernResult */
            putfield com.mongodb.WriteConcernException.writeConcernResult:Lcom/mongodb/WriteConcernResult;
         5: .line 51
            return
        end local 3 // com.mongodb.WriteConcernResult writeConcernResult
        end local 2 // com.mongodb.ServerAddress address
        end local 1 // org.bson.BsonDocument response
        end local 0 // com.mongodb.WriteConcernException this
      LocalVariableTable:
        Start  End  Slot                Name  Signature
            0    6     0                this  Lcom/mongodb/WriteConcernException;
            0    6     1            response  Lorg/bson/BsonDocument;
            0    6     2             address  Lcom/mongodb/ServerAddress;
            0    6     3  writeConcernResult  Lcom/mongodb/WriteConcernResult;
    MethodParameters:
                    Name  Flags
      response            final
      address             final
      writeConcernResult  final

  public static int extractErrorCode(org.bson.BsonDocument);
    descriptor: (Lorg/bson/BsonDocument;)I
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=5, locals=4, args_size=1
        start local 0 // org.bson.BsonDocument response
         0: .line 60
            aload 0 /* response */
            invokestatic com.mongodb.WriteConcernException.extractErrorMessage:(Lorg/bson/BsonDocument;)Ljava/lang/String;
            astore 1 /* errorMessage */
        start local 1 // java.lang.String errorMessage
         1: .line 61
            aload 1 /* errorMessage */
            ifnull 11
         2: .line 62
            aload 0 /* response */
            ldc "err"
            invokevirtual org.bson.BsonDocument.containsKey:(Ljava/lang/Object;)Z
            ifeq 5
         3: .line 63
            aload 1 /* errorMessage */
            ldc "E11000 duplicate key error"
            invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
            ifeq 5
         4: .line 64
            sipush 11000
            ireturn
         5: .line 70
      StackMap locals: java.lang.String
      StackMap stack:
            aload 0 /* response */
            ldc "code"
            invokevirtual org.bson.BsonDocument.containsKey:(Ljava/lang/Object;)Z
            ifne 11
            aload 0 /* response */
            ldc "errObjects"
            invokevirtual org.bson.BsonDocument.containsKey:(Ljava/lang/Object;)Z
            ifeq 11
         6: .line 71
            aload 0 /* response */
            ldc "errObjects"
            invokevirtual org.bson.BsonDocument.getArray:(Ljava/lang/Object;)Lorg/bson/BsonArray;
            invokevirtual org.bson.BsonArray.iterator:()Ljava/util/Iterator;
            astore 3
            goto 10
      StackMap locals: org.bson.BsonDocument java.lang.String top java.util.Iterator
      StackMap stack:
         7: aload 3
            invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
            checkcast org.bson.BsonValue
            astore 2 /* curErrorDocument */
        start local 2 // org.bson.BsonValue curErrorDocument
         8: .line 72
            aload 1 /* errorMessage */
            aload 2 /* curErrorDocument */
            invokevirtual org.bson.BsonValue.asDocument:()Lorg/bson/BsonDocument;
            invokestatic com.mongodb.WriteConcernException.extractErrorMessage:(Lorg/bson/BsonDocument;)Ljava/lang/String;
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifeq 10
         9: .line 73
            aload 2 /* curErrorDocument */
            invokevirtual org.bson.BsonValue.asDocument:()Lorg/bson/BsonDocument;
            ldc "code"
            invokevirtual org.bson.BsonDocument.getNumber:(Ljava/lang/Object;)Lorg/bson/BsonNumber;
            invokevirtual org.bson.BsonNumber.intValue:()I
            ireturn
        end local 2 // org.bson.BsonValue curErrorDocument
        10: .line 71
      StackMap locals:
      StackMap stack:
            aload 3
            invokeinterface java.util.Iterator.hasNext:()Z
            ifne 7
        11: .line 78
      StackMap locals: org.bson.BsonDocument java.lang.String
      StackMap stack:
            aload 0 /* response */
            ldc "code"
            new org.bson.BsonInt32
            dup
            iconst_m1
            invokespecial org.bson.BsonInt32.<init>:(I)V
            invokevirtual org.bson.BsonDocument.getNumber:(Ljava/lang/Object;Lorg/bson/BsonNumber;)Lorg/bson/BsonNumber;
            invokevirtual org.bson.BsonNumber.intValue:()I
            ireturn
        end local 1 // java.lang.String errorMessage
        end local 0 // org.bson.BsonDocument response
      LocalVariableTable:
        Start  End  Slot              Name  Signature
            0   12     0          response  Lorg/bson/BsonDocument;
            1   12     1      errorMessage  Ljava/lang/String;
            8   10     2  curErrorDocument  Lorg/bson/BsonValue;
    MethodParameters:
          Name  Flags
      response  final

  public static java.lang.String extractErrorMessage(org.bson.BsonDocument);
    descriptor: (Lorg/bson/BsonDocument;)Ljava/lang/String;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.bson.BsonDocument response
         0: .line 89
            aload 0 /* response */
            ldc "err"
            invokevirtual org.bson.BsonDocument.isString:(Ljava/lang/Object;)Z
            ifeq 2
         1: .line 90
            aload 0 /* response */
            ldc "err"
            invokevirtual org.bson.BsonDocument.getString:(Ljava/lang/Object;)Lorg/bson/BsonString;
            invokevirtual org.bson.BsonString.getValue:()Ljava/lang/String;
            areturn
         2: .line 91
      StackMap locals:
      StackMap stack:
            aload 0 /* response */
            ldc "errmsg"
            invokevirtual org.bson.BsonDocument.isString:(Ljava/lang/Object;)Z
            ifeq 4
         3: .line 92
            aload 0 /* response */
            ldc "errmsg"
            invokevirtual org.bson.BsonDocument.getString:(Ljava/lang/Object;)Lorg/bson/BsonString;
            invokevirtual org.bson.BsonString.getValue:()Ljava/lang/String;
            areturn
         4: .line 94
      StackMap locals:
      StackMap stack:
            aconst_null
            areturn
        end local 0 // org.bson.BsonDocument response
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0    5     0  response  Lorg/bson/BsonDocument;
    RuntimeVisibleAnnotations: 
      com.mongodb.lang.Nullable()
    MethodParameters:
          Name  Flags
      response  final

  public com.mongodb.WriteConcernResult getWriteConcernResult();
    descriptor: ()Lcom/mongodb/WriteConcernResult;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // com.mongodb.WriteConcernException this
         0: .line 104
            aload 0 /* this */
            getfield com.mongodb.WriteConcernException.writeConcernResult:Lcom/mongodb/WriteConcernResult;
            areturn
        end local 0 // com.mongodb.WriteConcernException this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lcom/mongodb/WriteConcernException;

  public int getErrorCode();
    descriptor: ()I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // com.mongodb.WriteConcernException this
         0: .line 113
            aload 0 /* this */
            getfield com.mongodb.WriteConcernException.response:Lorg/bson/BsonDocument;
            invokestatic com.mongodb.WriteConcernException.extractErrorCode:(Lorg/bson/BsonDocument;)I
            ireturn
        end local 0 // com.mongodb.WriteConcernException this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lcom/mongodb/WriteConcernException;

  public java.lang.String getErrorMessage();
    descriptor: ()Ljava/lang/String;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // com.mongodb.WriteConcernException this
         0: .line 123
            aload 0 /* this */
            getfield com.mongodb.WriteConcernException.response:Lorg/bson/BsonDocument;
            invokestatic com.mongodb.WriteConcernException.extractErrorMessage:(Lorg/bson/BsonDocument;)Ljava/lang/String;
            areturn
        end local 0 // com.mongodb.WriteConcernException this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lcom/mongodb/WriteConcernException;
    RuntimeVisibleAnnotations: 
      com.mongodb.lang.Nullable()

  public org.bson.BsonDocument getResponse();
    descriptor: ()Lorg/bson/BsonDocument;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // com.mongodb.WriteConcernException this
         0: .line 132
            aload 0 /* this */
            getfield com.mongodb.WriteConcernException.response:Lorg/bson/BsonDocument;
            areturn
        end local 0 // com.mongodb.WriteConcernException this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lcom/mongodb/WriteConcernException;
}
SourceFile: "WriteConcernException.java"