com.groupbyinc.flux.ElasticsearchException.class Maven / Gradle / Ivy
???? 4? *com/groupbyinc/flux/ElasticsearchException java/lang/RuntimeException 6com/groupbyinc/flux/common/xcontent/ToXContentFragment .com/groupbyinc/flux/common/io/stream/Writeable ElasticsearchException.java Gcom/groupbyinc/flux/ElasticsearchException$ElasticsearchExceptionHandle
ElasticsearchExceptionHandle ,com/groupbyinc/flux/ElasticsearchException$1
java/util/Map$Entry
java/util/Map Entry 5com/groupbyinc/flux/common/xcontent/ToXContent$Params .com/groupbyinc/flux/common/xcontent/ToXContent Params 8com/groupbyinc/flux/common/xcontent/XContentParser$Token 2com/groupbyinc/flux/common/xcontent/XContentParser Token Bcom/groupbyinc/flux/common/xcontent/ToXContent$DelegatingMapParams DelegatingMapParams 5com/groupbyinc/flux/common/io/stream/Writeable$Reader ! Reader 5com/groupbyinc/flux/common/io/stream/Writeable$Writer $ Writer %java/lang/invoke/MethodHandles$Lookup ' java/lang/invoke/MethodHandles ) Lookup UNKNOWN_VERSION_ADDED Lcom/groupbyinc/flux/Version; REST_EXCEPTION_SKIP_CAUSE Ljava/lang/String; rest.exception.cause.skip 0 REST_EXCEPTION_SKIP_STACK_TRACE rest.exception.stacktrace.skip 3 'REST_EXCEPTION_SKIP_STACK_TRACE_DEFAULT Z !REST_EXCEPTION_SKIP_CAUSE_DEFAULT INDEX_METADATA_KEY es.index ; INDEX_METADATA_KEY_UUID
es.index_uuid > SHARD_METADATA_KEY es.shard A RESOURCE_METADATA_TYPE_KEY es.resource.type D RESOURCE_METADATA_ID_KEY es.resource.id G TYPE type J REASON reason M CAUSED_BY caused_by P
SUPPRESSED 'Lcom/groupbyinc/flux/common/ParseField; STACK_TRACE stack_trace U HEADER header X ERROR error [
ROOT_CAUSE
root_cause ^ ID_TO_SUPPLIER Ljava/util/Map; ?Ljava/util/Map;>; 'CLASS_TO_ELASTICSEARCH_EXCEPTION_HANDLE ?Ljava/util/Map;Lcom/groupbyinc/flux/ElasticsearchException$ElasticsearchExceptionHandle;>; metadata GLjava/util/Map;>; headers $assertionsDisabled (Ljava/lang/Throwable;)V i j
k java/util/HashMap m ()V i o
n p e a r g a t this ,Lcom/groupbyinc/flux/ElasticsearchException; cause Ljava/lang/Throwable; ((Ljava/lang/String;[Ljava/lang/Object;)V 6com/groupbyinc/flux/common/logging/LoggerMessageFormat { format 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; } ~
| (Ljava/lang/String;)V i ?
? msg args [Ljava/lang/Object; =(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V *(Ljava/lang/String;Ljava/lang/Throwable;)V i ?
? 5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V java/io/IOException ? 0com/groupbyinc/flux/common/io/stream/StreamInput ? readOptionalString ()Ljava/lang/String; ? ?
? ?
readException ()Ljava/lang/Exception; ? ?
? ? readStackTrace ^(Ljava/lang/Throwable;Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Ljava/lang/Throwable; ? ?
? "java/lang/invoke/LambdaMetafactory ? metafactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; ? ?
? ? ? F(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Ljava/lang/Object; ?
readString ? ?
? ? ? F(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Ljava/lang/String; ? read 9()Lcom/groupbyinc/flux/common/io/stream/Writeable$Reader; ? ? ? readMapOfLists (Lcom/groupbyinc/flux/common/io/stream/Writeable$Reader;Lcom/groupbyinc/flux/common/io/stream/Writeable$Reader;)Ljava/util/Map; ? ?
? ? putAll (Ljava/util/Map;)V ? ? ?
getVersion ()Lcom/groupbyinc/flux/Version; ? ?
? ? com/groupbyinc/flux/Version ? V_5_3_0 ? - ? ? onOrAfter (Lcom/groupbyinc/flux/Version;)Z ? ?
? ? entrySet ()Ljava/util/Set; ? ? ?
java/util/Set ? iterator ()Ljava/util/Iterator; ? ? ? ? java/util/Iterator ? hasNext ()Z ? ? ? ? next ()Ljava/lang/Object; ? ? ? ? getKey ? ? ? java/lang/String ? es. ?
startsWith (Ljava/lang/String;)Z ? ?
? ? getValue ? ? ? java/util/List ? put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ? ? remove ? o ? ? MLjava/util/Map$Entry;>; Ljava/util/Map$Entry; cLjava/util/Iterator;>;>; Ljava/util/Iterator; in 2Lcom/groupbyinc/flux/common/io/stream/StreamInput; addMetadata ((Ljava/lang/String;[Ljava/lang/String;)V java/util/Arrays ? asList %([Ljava/lang/Object;)Ljava/util/List; ? ?
? ? %(Ljava/lang/String;Ljava/util/List;)V ? ?
? key values [Ljava/lang/String; "java/lang/IllegalArgumentException java/lang/StringBuilder
p 1exception metadata must start with [es.], found [ append -(Ljava/lang/String;)Ljava/lang/StringBuilder;
] instead toString ?
? $Ljava/util/List; Ljava/util/List; getMetadataKeys keySet ? getMetadata $(Ljava/lang/String;)Ljava/util/List; get &(Ljava/lang/Object;)Ljava/lang/Object; ()Ljava/util/Map; addHeader 4exception headers must not start with [es.], found [" value! ?
%
getHeaderKeys getHeader
getHeaders status '()Lcom/groupbyinc/flux/rest/RestStatus; unwrapCause ()Ljava/lang/Throwable;,-
. #com/groupbyinc/flux/rest/RestStatus0 INTERNAL_SERVER_ERROR %Lcom/groupbyinc/flux/rest/RestStatus;23 14 java/lang/Throwable6 $com/groupbyinc/flux/ExceptionsHelper8 <(Ljava/lang/Throwable;)Lcom/groupbyinc/flux/rest/RestStatus;*:
9; ,(Ljava/lang/Throwable;)Ljava/lang/Throwable;,=
9> getDetailedMessage getCauseA-
B
; E@ ?
G -(Ljava/lang/Object;)Ljava/lang/StringBuilder;
I
J
sb Ljava/lang/StringBuilder; getRootCause
7B rootCause writeTo 6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V
getMessageT ?
U 1com/groupbyinc/flux/common/io/stream/StreamOutputW writeOptionalStringY ?
XZ writeException\ j
X] writeStackTraces _(Ljava/lang/Throwable;Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)Ljava/lang/Throwable;_`
a
X ? H(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;Ljava/lang/Object;)Vd writeStringf ?
Xgh H(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;Ljava/lang/String;)Vj write 9()Lcom/groupbyinc/flux/common/io/stream/Writeable$Writer;lm n writeMapOfLists ?(Ljava/util/Map;Lcom/groupbyinc/flux/common/io/stream/Writeable$Writer;Lcom/groupbyinc/flux/common/io/stream/Writeable$Writer;)Vpq
Xr size ()Itu v (I)V ix
ny finalHeaders out 3Lcom/groupbyinc/flux/common/io/stream/StreamOutput; a(Lcom/groupbyinc/flux/common/io/stream/StreamInput;I)Lcom/groupbyinc/flux/ElasticsearchException; ` a java/lang/Integer? valueOf (I)Ljava/lang/Integer;??
?? *com/groupbyinc/flux/common/CheckedFunction? java/lang/IllegalStateException? unknown exception for id: ? (I)Ljava/lang/StringBuilder;
?
?
? ? apply??? input id I elasticsearchException ?Lcom/groupbyinc/flux/common/CheckedFunction; ,Lcom/groupbyinc/flux/common/CheckedFunction; isRegistered 1(Ljava/lang/Class;Lcom/groupbyinc/flux/Version;)Z c a ? versionAdded? - ? exception )Ljava/lang/Class<+Ljava/lang/Throwable;>; Ljava/lang/Class; version elasticsearchExceptionHandle ILcom/groupbyinc/flux/ElasticsearchException$ElasticsearchExceptionHandle; getRegisteredKeys getId (Ljava/lang/Class;)I?? ? @Ljava/lang/Class<+Lcom/groupbyinc/flux/ElasticsearchException;>;
toXContent ?(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; generateThrowableXContent ?(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;Ljava/lang/Throwable;)V??
? getExceptionName? ?
? innerToXContent ?(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Ljava/util/Map;Ljava/lang/Throwable;)V??
? builder 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; params 7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params; ex 3com/groupbyinc/flux/common/xcontent/XContentBuilder? field [(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;??
?? length?u
?? substring (I)Ljava/lang/String;??
?? headerToXContent Z(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Ljava/lang/String;Ljava/util/List;)V??
? metadataToXContent o(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)V??
? paramAsBoolean (Ljava/lang/String;Z)Z?? ? I(Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;??
?? startObject 7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;??
?? endObject??
?? isEmpty? ? ???
??
stackTrace )(Ljava/lang/Throwable;)Ljava/lang/String;??
9?
getSuppressed ()[Ljava/lang/Throwable;??
7? R S ? %com/groupbyinc/flux/common/ParseField? getPreferredName? ?
??
startArray??
?? [Ljava/lang/Throwable;? endArray??
?? entry
suppressed throwable message
allSuppressed ?? ?v (I)Ljava/lang/Object; ? ? ?$?
? fromXContent b(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/ElasticsearchException; nextToken <()Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;
FIELD_NAME :Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token; java/util/Objects requireNonNull
? getTokenLocation 8()Lcom/groupbyinc/flux/common/xcontent/XContentLocation; S(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Ljava/util/function/Supplier;! " 7com/groupbyinc/flux/common/xcontent/XContentParserUtils$ ensureExpectedToken ?(Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;Ljava/util/function/Supplier;)V&'
%( innerFromXContent c(Lcom/groupbyinc/flux/common/xcontent/XContentParser;Z)Lcom/groupbyinc/flux/ElasticsearchException;*+
, parser 4Lcom/groupbyinc/flux/common/xcontent/XContentParser; token currentToken1 2 java/util/ArrayList4
5 p currentName7 ? 8 isValue: ?
; equals (Ljava/lang/Object;)Z=>
?? textA ? B VALUE_STRINGD E java/util/CollectionsG
singletonList $(Ljava/lang/Object;)Ljava/util/List;IJ
HK START_OBJECTM N
P
END_OBJECTR S getOrDefaultU ? V addX> ?Y START_ARRAY[ \ END_ARRAY^ _ skipChildrena o b getDeprecationHandler :()Lcom/groupbyinc/flux/common/xcontent/DeprecationHandler;de f match M(Ljava/lang/String;Lcom/groupbyinc/flux/common/xcontent/DeprecationHandler;)Zhi
?j containsKeyl> m java/util/Collectiono addAll (Ljava/util/Collection;)Zqr ?s buildMessage J(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;uv
w java/lang/Objecty i ?
{
addSuppressed} j
~ currentFieldName s parseRootCauses stack
rootCauses >Ljava/util/List; e??
???
?
7U emptyMap?
H? t generateFailureXContent ?(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;Ljava/lang/Exception;Z)V %Lcom/groupbyinc/flux/common/Nullable; unknown? No ElasticsearchException found? getClass ()Ljava/lang/Class;??
z? java/lang/Class?
getSimpleName? ?
?? [? ]? guessRootCauses D(Ljava/lang/Throwable;)[Lcom/groupbyinc/flux/ElasticsearchException;??
? java/lang/Exception? -[Lcom/groupbyinc/flux/ElasticsearchException;? true? singletonMap 5(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map;??
H? I(Ljava/util/Map;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)V i?
? counter Ljava/lang/Exception; detailed failureFromXContent ensureFieldName ?(Lcom/groupbyinc/flux/common/xcontent/XContentParser;Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;Ljava/lang/String;)V??
%?? i z
? /()[Lcom/groupbyinc/flux/ElasticsearchException;??
? :com/groupbyinc/flux/common/xcontent/XContentParseException?
{
Elasticsearch? toUnderscoreCase &(Ljava/lang/String;)Ljava/lang/String;??
?
simpleName Elasticsearch exception [?
? (C)Ljava/lang/StringBuilder;
?
? , ? getIndex #()Lcom/groupbyinc/flux/index/Index;??
?
getShardId +()Lcom/groupbyinc/flux/index/shard/ShardId;??
? detailedMessage??
9? trim? ?
?? readVInt?u
?? java/lang/StackTraceElement? [Ljava/lang/StackTraceElement;? :(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V i?
??
setStackTrace !([Ljava/lang/StackTraceElement;)V??
7?
7~ declaringClasss fileName
methodName
lineNumber i TT; stackTraceElements
numSuppressed
getStackTrace ()[Ljava/lang/StackTraceElement;??
7? writeVInt?x
X? getClassName ?
? getFileName ?
?
getMethodName ?
?
getLineNumber
u
? element Ljava/lang/StackTraceElement; ids ()[I L()[Lcom/groupbyinc/flux/ElasticsearchException$ElasticsearchExceptionHandle;
stream .([Ljava/lang/Object;)Ljava/util/stream/Stream;
? (Ljava/lang/Object;)I lambda$ids$0 L(Lcom/groupbyinc/flux/ElasticsearchException$ElasticsearchExceptionHandle;)I
applyAsInt $()Ljava/util/function/ToIntFunction; ! " java/util/stream/Stream$ mapToInt @(Ljava/util/function/ToIntFunction;)Ljava/util/stream/IntStream;&'%( java/util/stream/IntStream* toArray,+- classes -()[Lcom/groupbyinc/flux/common/collect/Tuple; lambda$classes$1 u(Lcom/groupbyinc/flux/ElasticsearchException$ElasticsearchExceptionHandle;)Lcom/groupbyinc/flux/common/collect/Tuple;23
453 ()Ljava/util/function/Function;?8 9 map 8(Ljava/util/function/Function;)Ljava/util/stream/Stream;;<%= lambda$classes$2 .(I)[Lcom/groupbyinc/flux/common/collect/Tuple;@A
BCA "()Ljava/util/function/IntFunction;?F G 5(Ljava/util/function/IntFunction;)[Ljava/lang/Object;,I%J +[Lcom/groupbyinc/flux/common/collect/Tuple;L ts ?[Lcom/groupbyinc/flux/common/collect/Tuple;>;
P com/groupbyinc/flux/index/IndexR '(Ljava/lang/String;Ljava/lang/String;)V iT
SU
index_uuid index 'com/groupbyinc/flux/index/shard/ShardIdY parseInt (Ljava/lang/String;)I[\
?] %(Lcom/groupbyinc/flux/index/Index;I)V i_
Z` shard setIndex $(Lcom/groupbyinc/flux/index/Index;)V getNamee ?
Sf ? ?
h getUUIDj ?
Sk !Lcom/groupbyinc/flux/index/Index; _na_ncd
p setShard ,(Lcom/groupbyinc/flux/index/shard/ShardId;)V
Z??u
Zu?
?w shardId )Lcom/groupbyinc/flux/index/shard/ShardId; setResources h 6 | java/lang/AssertionError~
p
getResourceId ()Ljava/util/List; getResourceType charAt (I)C??
?? java/lang/Character? isUpperCase (C)Z??
?? toLowerCase (C)C??
?? j c C changed lambda$static$6 ?(Lcom/groupbyinc/flux/ElasticsearchException$ElasticsearchExceptionHandle;)Lcom/groupbyinc/flux/ElasticsearchException$ElasticsearchExceptionHandle; lambda$static$5 \(Lcom/groupbyinc/flux/ElasticsearchException$ElasticsearchExceptionHandle;)Ljava/lang/Class; exceptionClass?? ? lambda$static$4 w(Lcom/groupbyinc/flux/ElasticsearchException$ElasticsearchExceptionHandle;)Lcom/groupbyinc/flux/common/CheckedFunction; constructor?? ? lambda$static$3 ^(Lcom/groupbyinc/flux/ElasticsearchException$ElasticsearchExceptionHandle;)Ljava/lang/Integer; (com/groupbyinc/flux/common/collect/Tuple? x$0 tuple P(Ljava/lang/Object;Ljava/lang/Object;)Lcom/groupbyinc/flux/common/collect/Tuple;??
?? h
access$000 , - ? desiredAssertionStatus? ?
?? fromId (I)Lcom/groupbyinc/flux/Version;??
??? i ?
????
??? 9??
??? 9 java/util/stream/Collectors? toMap X(Ljava/util/function/Function;Ljava/util/function/Function;)Ljava/util/stream/Collector;??
?? collect 0(Ljava/util/stream/Collector;)Ljava/lang/Object;??%? unmodifiableMap (Ljava/util/Map;)Ljava/util/Map;??
H???
??? 9??
??? 9
ConstantValue Signature Code LocalVariableTable LineNumberTable LocalVariableTypeTable
StackMapTable
Exceptions 9(Ljava/lang/String;Ljava/util/List;)V %()Ljava/util/Set; 8(Ljava/lang/String;)Ljava/util/List; I()Ljava/util/Map;>; I(Ljava/lang/Class<+Ljava/lang/Throwable;>;Lcom/groupbyinc/flux/Version;)Z S()Ljava/util/Set;>; C(Ljava/lang/Class<+Lcom/groupbyinc/flux/ElasticsearchException;>;)IK(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;>;Ljava/util/Map;>;Ljava/lang/Throwable;)V n(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Ljava/lang/String;Ljava/util/List;)V "RuntimeVisibleParameterAnnotations S(TT;Lcom/groupbyinc/flux/common/io/stream/StreamInput;)TT; T(TT;Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)TT; ?()[Lcom/groupbyinc/flux/common/collect/Tuple;>; &()Ljava/util/List; BootstrapMethods
SourceFile InnerClasses ! , - . / ? 1 2 / ? 4 5 6 ? 7 8 6 ? 9 : / ? <