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 STACK_TRACE stack_trace S HEADER header V ERROR error Y
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 g h
i java/util/HashMap k ()V g m
l n c _ p e _ r this ,Lcom/groupbyinc/flux/ElasticsearchException; cause Ljava/lang/Throwable; ((Ljava/lang/String;[Ljava/lang/Object;)V 6com/groupbyinc/flux/common/logging/LoggerMessageFormat y format 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; { |
z } (Ljava/lang/String;)V g
? msg args [Ljava/lang/Object; =(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V *(Ljava/lang/String;Ljava/lang/Throwable;)V g ?
? 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 ? ? ? put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ? ? remove ? m ? ? 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
n 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; java/util/List ()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/RestStatus. INTERNAL_SERVER_ERROR %Lcom/groupbyinc/flux/rest/RestStatus;01 /2 java/lang/Throwable4 $com/groupbyinc/flux/ExceptionsHelper6 <(Ljava/lang/Throwable;)Lcom/groupbyinc/flux/rest/RestStatus;(8
79 ,(Ljava/lang/Throwable;)Ljava/lang/Throwable;*;
7< getDetailedMessage getCause?+
@
; C> ?
E -(Ljava/lang/Object;)Ljava/lang/StringBuilder;G
H
sb Ljava/lang/StringBuilder; getRootCause
5@ rootCause writeTo 6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V
getMessageR ?
S 1com/groupbyinc/flux/common/io/stream/StreamOutputU writeOptionalStringW
VX writeExceptionZ h
V[ writeStackTraces _(Ljava/lang/Throwable;Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)Ljava/lang/Throwable;]^
_
V ? H(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;Ljava/lang/Object;)Vb writeStringd
Vef H(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;Ljava/lang/String;)Vh write 9()Lcom/groupbyinc/flux/common/io/stream/Writeable$Writer;jk l writeMapOfLists ?(Ljava/util/Map;Lcom/groupbyinc/flux/common/io/stream/Writeable$Writer;Lcom/groupbyinc/flux/common/io/stream/Writeable$Writer;)Vno
Vp size ()Irs t (I)V gv
lw
l ? finalHeaders KLjava/util/HashMap;>; Ljava/util/HashMap; out 3Lcom/groupbyinc/flux/common/io/stream/StreamOutput; a(Lcom/groupbyinc/flux/common/io/stream/StreamInput;I)Lcom/groupbyinc/flux/ElasticsearchException; ^ _ ? 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 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?s
?? 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;??
7? entry throwable message?t (I)Ljava/lang/Object;??
startArray??
?? ?"?
?? endArray??
?? 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/lang/Object getClass ()Ljava/lang/Class;
? 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 currentToken$ % java/util/ArrayList'
( n currentName* ? + isValue- ?
. equals (Ljava/lang/Object;)Z01
?2 text4 ? 5 VALUE_STRING7 8 java/util/Collections:
singletonList $(Ljava/lang/Object;)Ljava/util/List;<=
;> START_OBJECT@ A??
C
END_OBJECTE F getOrDefaultH ? I addK1L START_ARRAYN O END_ARRAYQ R skipChildrenT m U containsKeyW1 X java/util/CollectionZ addAll (Ljava/util/Collection;)Z\]^ buildMessage J(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;`a
b g ?
d
addSuppressedf h
g currentFieldName parseRootCauses stack
rootCauses >Ljava/util/List; e??
o??
q
5S emptyMapt
;u 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} 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;??
;? I(Ljava/util/Map;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)V g?
? counter Ljava/lang/Exception; detailed failureFromXContent ensureFieldName ?(Lcom/groupbyinc/flux/common/xcontent/XContentParser;Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;Ljava/lang/String;)V??
?? g x
? /()[Lcom/groupbyinc/flux/ElasticsearchException;??
?
d
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??
7? trim? ?
?? readVInt?s
?? java/lang/StackTraceElement? [Ljava/lang/StackTraceElement;? :(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V g?
??
setStackTrace !([Ljava/lang/StackTraceElement;)V??
5?
5g declaringClasss fileName
methodName
lineNumber i TT; stackTraceElements
numSuppressed
getStackTrace ()[Ljava/lang/StackTraceElement;??
5? writeVInt?v
V? getClassName? ?
?? getFileName? ?
??
getMethodName? ?
??
getLineNumber?s
??
getSuppressed ()[Ljava/lang/Throwable;??
5? [Ljava/lang/Throwable;? element Ljava/lang/StackTraceElement;
suppressed 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;
()Ljava/util/function/Function;?! " map 8(Ljava/util/function/Function;)Ljava/util/stream/Stream;$%&? lambda$classes$2 .(I)[Lcom/groupbyinc/flux/common/collect/Tuple;)*
+,* "()Ljava/util/function/IntFunction;?/ 0 5(Ljava/util/function/IntFunction;)[Ljava/lang/Object;23 +[Lcom/groupbyinc/flux/common/collect/Tuple;5 ts ?[Lcom/groupbyinc/flux/common/collect/Tuple;>;
9 com/groupbyinc/flux/index/Index; '(Ljava/lang/String;Ljava/lang/String;)V g=
<>
index_uuid index 'com/groupbyinc/flux/index/shard/ShardIdB parseInt (Ljava/lang/String;)IDE
?F %(Lcom/groupbyinc/flux/index/Index;I)V gH
CI shard setIndex $(Lcom/groupbyinc/flux/index/Index;)V getNameN ?
<O ? ?
Q getUUIDS ?
<T !Lcom/groupbyinc/flux/index/Index; _na_WLM
Y setShard ,(Lcom/groupbyinc/flux/index/shard/ShardId;)V
C??s
C^?
?` shardId )Lcom/groupbyinc/flux/index/shard/ShardId; setResources f 6 e java/lang/AssertionErrorg
h n
getResourceId ()Ljava/util/List; getResourceType charAt (I)Cmn
?o java/lang/Characterq isUpperCase (C)Zst
ru toLowerCase (C)Cwx
ry 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;??
????
??? "??
??? " 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;??
;???
??? "?
??? "
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 : / ? <