scalax.file

NotDirectoryException

case class NotDirectoryException(path: String) extends IOException with ControlThrowable with Product with Serializable

This is a control exception that indicates the underlying filesystem object either does not exist or is not a Directory

To safely use PathSet one should use the following code:


import scala.util.control.Exception._
catching(classOf[NotDirectoryException]) opt {
  ds map (_.name)
} match {
  case None => println ("Oh no the path is not a directory!")
  case Some(names) => println ("oh everything went as planned and we got all the names: "+names)
}

Since

1.0

Linear Supertypes
Serializable, Product, Equals, ControlThrowable, NoStackTrace, IOException, Exception, Throwable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. NotDirectoryException
  2. Serializable
  3. Product
  4. Equals
  5. ControlThrowable
  6. NoStackTrace
  7. IOException
  8. Exception
  9. Throwable
  10. Serializable
  11. AnyRef
  12. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new NotDirectoryException(path: String)

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def fillInStackTrace(): Throwable

    Definition Classes
    NoStackTrace → Throwable
  10. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  11. def getCause(): Throwable

    Definition Classes
    Throwable
  12. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  13. def getLocalizedMessage(): String

    Definition Classes
    Throwable
  14. def getMessage(): String

    Definition Classes
    Throwable
  15. def getStackTrace(): Array[StackTraceElement]

    Definition Classes
    Throwable
  16. def initCause(arg0: Throwable): Throwable

    Definition Classes
    Throwable
  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  21. val path: String

  22. def printStackTrace(arg0: PrintWriter): Unit

    Definition Classes
    Throwable
  23. def printStackTrace(arg0: PrintStream): Unit

    Definition Classes
    Throwable
  24. def printStackTrace(): Unit

    Definition Classes
    Throwable
  25. def setStackTrace(arg0: Array[StackTraceElement]): Unit

    Definition Classes
    Throwable
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  27. lazy val toString: String

    Definition Classes
    NotDirectoryException → Throwable → AnyRef → Any
  28. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  29. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  30. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from ControlThrowable

Inherited from NoStackTrace

Inherited from IOException

Inherited from Exception

Inherited from Throwable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped