
com.groupbyinc.flux.ExceptionsHelper.class Maven / Gradle / Ivy
???? 3 $com/groupbyinc/flux/ExceptionsHelper java/lang/Object ExceptionsHelper.java ,com/groupbyinc/flux/ExceptionsHelper$GroupBy GroupBy logger -Lcom/groupbyinc/flux/common/logging/ESLogger; ()V
this &Lcom/groupbyinc/flux/ExceptionsHelper; convertToRuntime 3(Ljava/lang/Throwable;)Ljava/lang/RuntimeException; java/lang/RuntimeException *com/groupbyinc/flux/ElasticsearchException java/lang/Throwable
getMessage ()Ljava/lang/String;
=(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V
t Ljava/lang/Throwable; convertToElastic C(Ljava/lang/Throwable;)Lcom/groupbyinc/flux/ElasticsearchException; status <(Ljava/lang/Throwable;)Lcom/groupbyinc/flux/rest/RestStatus; '()Lcom/groupbyinc/flux/rest/RestStatus; $ &
' "java/lang/IllegalArgumentException ) #com/groupbyinc/flux/rest/RestStatus + BAD_REQUEST %Lcom/groupbyinc/flux/rest/RestStatus; - . , / INTERNAL_SERVER_ERROR 1 . , 2 unwrapCause ,(Ljava/lang/Throwable;)Ljava/lang/Throwable; 1com/groupbyinc/flux/ElasticsearchWrapperException 6 getCause ()Ljava/lang/Throwable; 8 9
:
< /Exception cause unwrapping ran for 10 levels... > +com/groupbyinc/flux/common/logging/ESLogger @ warn B A C counter I result detailedMessage )(Ljava/lang/Throwable;)Ljava/lang/String; +(Ljava/lang/Throwable;ZI)Ljava/lang/String; H J
K Unknown M java/lang/StringBuilder O
P
getClass ()Ljava/lang/Class; R S
T java/lang/Class V
getSimpleName X
W Y append -(Ljava/lang/String;)Ljava/lang/StringBuilder; [ \
P ] [ _ ] a ; c
e g nested: i toString k
P l i sb Ljava/lang/StringBuilder; newLines Z initialCounter
stackTrace java/io/StringWriter u
v
java/io/PrintWriter x (Ljava/io/Writer;)V z
y { printStackTrace (Ljava/io/PrintWriter;)V } ~
v l e stackTraceStringWriter Ljava/io/StringWriter; printWriter Ljava/io/PrintWriter; rethrowAndSuppress (Ljava/util/List;)V java/util/List ? iterator ()Ljava/util/Iterator; ? ? ? ? java/util/Iterator ? hasNext ()Z ? ? ? ? next ()Ljava/lang/Object; ? ? ? ?
useOrSuppress A(Ljava/lang/Throwable;Ljava/lang/Throwable;)Ljava/lang/Throwable; ? ?
? ex TT;
exceptions Ljava/util/List; Ljava/util/List; main maybeThrowRuntimeAndSuppress
addSuppressed (Ljava/lang/Throwable;)V ? ?
? first second unwrapCorruption ,(Ljava/lang/Throwable;)Ljava/io/IOException; Dcom/groupbyinc/flux/common/apache/lucene/index/CorruptIndexException ? Icom/groupbyinc/flux/common/apache/lucene/index/IndexFormatTooOldException ? Icom/groupbyinc/flux/common/apache/lucene/index/IndexFormatTooNewException ? unwrap >(Ljava/lang/Throwable;[Ljava/lang/Class;)Ljava/lang/Throwable; ? ?
? java/io/IOException ? [Ljava/lang/Class; ?
isInstance (Ljava/lang/Object;)Z ? ?
W ? clazz Ljava/lang/Class<*>; Ljava/lang/Class; clazzes [Ljava/lang/Class<*>; isOOM (Ljava/lang/Throwable;)Z java/lang/OutOfMemoryError ? java/lang/IllegalStateException ? OutOfMemoryError ? java/lang/String ? contains (Ljava/lang/CharSequence;)Z ? ?
? ? reThrowIfNotNull %Lcom/groupbyinc/flux/common/Nullable; ?
? groupBy x([Lcom/groupbyinc/flux/action/ShardOperationFailedException;)[Lcom/groupbyinc/flux/action/ShardOperationFailedException; java/util/ArrayList ?
?
java/util/HashSet ?
?
;[Lcom/groupbyinc/flux/action/ShardOperationFailedException; ?
java/util/Set ? 8com/groupbyinc/flux/action/ShardOperationFailedException ? ? :
? ? ? ? ? add ? ? ? ? ? ? toArray (([Ljava/lang/Object;)[Ljava/lang/Object; ? ? ? ? reason .Lcom/groupbyinc/flux/ExceptionsHelper$GroupBy; failure :Lcom/groupbyinc/flux/action/ShardOperationFailedException; failures uniqueFailures LLjava/util/List; reasons ?Ljava/util/Set; Ljava/util/Set; *com/groupbyinc/flux/common/logging/Loggers ? getLogger @(Ljava/lang/Class;)Lcom/groupbyinc/flux/common/logging/ESLogger; ? ?
? ? Code LocalVariableTable LineNumberTable
StackMapTable LocalVariableTypeTable
Exceptions Signature 5(Ljava/util/List;)V^TT; 1(Ljava/util/List;)V $(TT;TT;)TT; A(Ljava/lang/Throwable;[Ljava/lang/Class<*>;)Ljava/lang/Throwable; "RuntimeVisibleParameterAnnotations
SourceFile InnerClasses 1
/ *? ? * X *? ? *? ?? Y*? *? ? ? ! / 0 2 " # X *? ? *? ?? Y*? *? ? ? ! 6 7 9 $ % j "*? *? ? *? ? (?*? *? ? 0?? 3? " ! = > ? @ A D
4 5 ? B<*M,? 7? 8,? ;? ,?,? ;,? ,??
? ? =?*? ? D ,?,? ;M???,? B ! @ E F > G ! 2 H I J K L N O Q ' S 6 T 8 V @ X
? H I 1 *? L? ! \ H J ? ?*? N?`>*? ;? ?? PY? Q:*? z*? U? Z? ^W*? ? `? ^W*? ? ^Wb? ^W? d? ^W*? ;K*? 1? %f? ^W6? h? ^W???? j? ^W????? m?? PY? Q*? U? Z? ^`? ^*? ? ^b? ^? m? > q n F ? o p ? ! ? q r ? s F ? E F b ` a c d e f g , h 3 i ; j E k M m Q n Y p ^ q b r f s n t w u t ? x ? { ? } ?
? P1? ? ? t I e ? vY? wL? yY+? |M*,? ?+? ?? ? ! ? ?
? ? ? ? ? ? ? ? ? ,L*? ? M,? ? ? ,? ? ? N+-? ?L???+? +?? ? ! , ? ? * ? ! ? ? , ? ? * ? ? ? ? ? " ? % ? ) ? + ? ? ?? ? ? ? ;L*? ? M,? ? ? ,? ? ? N+-? ?L???+? ? Y+? +? ? ?? ? ! ; ? ? 9 ? ! ? ? ; ? ? 9 ? ? ? ? ? " ? % ? ) ? : ? ? ?? ? ? r
*? +?*+? ?*?
? !
? !
? ?
? ? ? ? ? ? ? ? E *? WY?SY?SY?S? ?? ?? ! ? ? ? ? ? 4*? 1+M,?>6? ,2:*? ?? *?????*? ;YK???? ? ? 4 ! 4 ? ? ? ? 4 ? ? ? ? ? ! ? # ? ) ? 2 ? ? ??
? ? i +*? (*? ƚ *? ș *? ? *? ʶ Й ? ? + ! ? ? ? %@ ? ? _ *? *? ? *? ?? Y*? Կ? ? ! ? ? ? ? ? ? ? ? g? ?Y? ?L? ?Y? ?M*N-?66? <-2:? Y? ? ? ?:,? ? ? ,? ? W+? ? W????+? ? ? ? ް 4 6 ? ? &