File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535 (muuntaja.protocols StreamableResponse)
3636 (java.io File ByteArrayInputStream)))
3737
38+ (set! *warn-on-reflection* true )
39+
3840(def macroexpand-2 (comp macroexpand-1 macroexpand-1))
3941
4042(defn is-thrown-with-msg?* [is* ^Class cls re form f]
4143 (try (f )
4244 (is* false (str " Expected to throw: " form))
4345 (catch Throwable outer
4446 (let [encountered-class-match (atom false )]
45- (loop [e outer]
47+ (loop [^Throwable e outer]
4648 (let [matches-class (instance? cls e)]
4749 (swap! encountered-class-match #(or % matches-class))
4850 (if (and matches-class
49- (some->> (ex-message e) (re-find re)))
51+ (some->> (.getMessage e) (re-find re)))
5052 (is* true " " )
51- (let [e' (ex-cause e )]
53+ (let [e' (some-> e .getCause )]
5254 (if (identical? e' e)
5355 (if @encountered-class-match
5456 (is* false (str " Did not match exception message:\n "
You can’t perform that action at this time.
0 commit comments