All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.scalafmt.dynamic.exceptions.ReflectionException.scala Maven / Gradle / Ivy

package org.scalafmt.dynamic.exceptions

import java.lang.reflect.InvocationTargetException

object ReflectionException {
  def unapply(e: Throwable): Option[Throwable] =
    e match {
      case e: InvocationTargetException => Some(e.getCause)
      case _ => Some(e)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy