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 start local 1 start local 2 start local 3 0: aload 0
aload 1
invokestatic com.mongodb.WriteConcernException.extractErrorCode:(Lorg/bson/BsonDocument;)I
1: ldc "Write failed with error code %d and error message '%s'"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 1
invokestatic com.mongodb.WriteConcernException.extractErrorCode:(Lorg/bson/BsonDocument;)I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
aload 1
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: aload 2
invokespecial com.mongodb.MongoServerException.<init>:(ILjava/lang/String;Lcom/mongodb/ServerAddress;)V
3: aload 0
aload 1
putfield com.mongodb.WriteConcernException.response:Lorg/bson/BsonDocument;
4: aload 0
aload 3
putfield com.mongodb.WriteConcernException.writeConcernResult:Lcom/mongodb/WriteConcernResult;
5: return
end local 3 end local 2 end local 1 end local 0 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 (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 0: aload 0
invokestatic com.mongodb.WriteConcernException.extractErrorMessage:(Lorg/bson/BsonDocument;)Ljava/lang/String;
astore 1
start local 1 1: aload 1
ifnull 11
2: aload 0
ldc "err"
invokevirtual org.bson.BsonDocument.containsKey:(Ljava/lang/Object;)Z
ifeq 5
3: aload 1
ldc "E11000 duplicate key error"
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 5
4: sipush 11000
ireturn
5: StackMap locals: java.lang.String
StackMap stack:
aload 0
ldc "code"
invokevirtual org.bson.BsonDocument.containsKey:(Ljava/lang/Object;)Z
ifne 11
aload 0
ldc "errObjects"
invokevirtual org.bson.BsonDocument.containsKey:(Ljava/lang/Object;)Z
ifeq 11
6: aload 0
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
start local 2 8: aload 1
aload 2
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: aload 2
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 10: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 7
11: StackMap locals: org.bson.BsonDocument java.lang.String
StackMap stack:
aload 0
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 end local 0 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 (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 0: aload 0
ldc "err"
invokevirtual org.bson.BsonDocument.isString:(Ljava/lang/Object;)Z
ifeq 2
1: aload 0
ldc "err"
invokevirtual org.bson.BsonDocument.getString:(Ljava/lang/Object;)Lorg/bson/BsonString;
invokevirtual org.bson.BsonString.getValue:()Ljava/lang/String;
areturn
2: StackMap locals:
StackMap stack:
aload 0
ldc "errmsg"
invokevirtual org.bson.BsonDocument.isString:(Ljava/lang/Object;)Z
ifeq 4
3: aload 0
ldc "errmsg"
invokevirtual org.bson.BsonDocument.getString:(Ljava/lang/Object;)Lorg/bson/BsonString;
invokevirtual org.bson.BsonString.getValue:()Ljava/lang/String;
areturn
4: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 0 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 0: aload 0
getfield com.mongodb.WriteConcernException.writeConcernResult:Lcom/mongodb/WriteConcernResult;
areturn
end local 0 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 0: aload 0
getfield com.mongodb.WriteConcernException.response:Lorg/bson/BsonDocument;
invokestatic com.mongodb.WriteConcernException.extractErrorCode:(Lorg/bson/BsonDocument;)I
ireturn
end local 0 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 0: aload 0
getfield com.mongodb.WriteConcernException.response:Lorg/bson/BsonDocument;
invokestatic com.mongodb.WriteConcernException.extractErrorMessage:(Lorg/bson/BsonDocument;)Ljava/lang/String;
areturn
end local 0 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 0: aload 0
getfield com.mongodb.WriteConcernException.response:Lorg/bson/BsonDocument;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/WriteConcernException;
}
SourceFile: "WriteConcernException.java"