Packages

object MLException extends OperationCollection

Contains:

Source
MLException.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MLException
  2. OperationCollection
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. class ExceptionManager extends control.ExceptionManager

    An implementation of control.ExceptionManager (for controlling how exceptions thrown in ML code are passed through to Scala) that returns more specific subclasses of IsabelleMLException for certain exceptions (see recognizeException for the known exceptions).

    An implementation of control.ExceptionManager (for controlling how exceptions thrown in ML code are passed through to Scala) that returns more specific subclasses of IsabelleMLException for certain exceptions (see recognizeException for the known exceptions). Install it via Isabelle.SetupGeneral.exceptionManager.

  2. abstract class IsabelleMLExceptionConverter extends Converter[IsabelleMLException]

    MLValue.Converter for type IsabelleMLException[A].

    MLValue.Converter for type IsabelleMLException[A].

    • ML type: exn.
    • Encoding of exception e as an exception: e (that is, the exception is directly stored without any encoding in the object table which is possible since the object table stores all values encoded as exceptions).
    See also

    MLValue.Converter for explanations what Converters are for. Override the function recognize if you want the returned exception to be some more informative subclass of IsabelleMLException. Two preconfigured instantiations for importing exist: simpleIsabelleMLExceptionConverter and distinguishingIsabelleMLExceptionConverter, see there.

  3. class Ops extends AnyRef
    Attributes
    protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def Ops(implicit isabelle: Isabelle, ec: ExecutionContext): Ops

    Returns an instance of type Ops.

    Returns an instance of type Ops. It is guaranteed that for each instance isabelle, exactly one instance of Obs is created (using the ec from the first such invocation). (If you see this doc string in a class different from OperationCollection but no definition of the class Ops, treat this function as if it was private.)

    Definition Classes
    OperationCollection
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  11. def init()(implicit isabelle: Isabelle, executionContext: ExecutionContext): Unit

    Makes sure an Ops instance for the instance isabelle is initialized.

    Makes sure an Ops instance for the instance isabelle is initialized. This is useful when code needs to be sure that the global initialization inside the Ops class has happened (e.g., declarations of ML types via Isabelle.executeMLCodeNow) even if it does not access any of the fields in the Ops class.

    Can safely be called several times with the same isabelle and/or executionContext.

    Definition Classes
    OperationCollection
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def newOps(implicit isabelle: Isabelle, ec: ExecutionContext): Ops

    Should construct an instance of type Ops

    Should construct an instance of type Ops

    Attributes
    protected
    Definition Classes
    MLExceptionOperationCollection
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  17. def recognizeException(exception: IsabelleMLException, fallback: (IsabelleMLException) => IsabelleMLException = identity)(implicit ec: ExecutionContext): Future[IsabelleMLException]

    Takes an IsabelleMLException and analyses whether it contains one of several known ML exceptions for which there are more informative subclasses of IsabelleMLException.

    Takes an IsabelleMLException and analyses whether it contains one of several known ML exceptions for which there are more informative subclasses of IsabelleMLException. If so, returns a new more informative exception object that contains the same exception.

    Known exception types are:

    exception

    The exception to transform

    fallback

    A function for transforming the exception if it is not any of the above

  18. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  19. def toString(): String
    Definition Classes
    AnyRef → Any
  20. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  21. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. implicit object distinguishingIsabelleMLExceptionConverter extends IsabelleMLExceptionConverter

    Preconfigured instance of IsabelleMLExceptionConverter.

    Preconfigured instance of IsabelleMLExceptionConverter. For certain known kind of ML exceptions (such as TERM _ etc.), it returns subclasses of IsabelleMLException (such as TermMLException). It uses recognizeException to recognize the exception, see there for a list of all supported exceptions. Use by importing it.

  24. implicit object simpleIsabelleMLExceptionConverter extends IsabelleMLExceptionConverter

    Preconfigured instance of IsabelleMLExceptionConverter.

    Preconfigured instance of IsabelleMLExceptionConverter. It simply returns an IsabelleMLException without any extra processing. Use by importing it.

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from OperationCollection

Inherited from AnyRef

Inherited from Any

Ungrouped