Packages

case class ThrownExceptions(types: TypesSet) extends Property with ThrownExceptionsPropertyMetaInformation with Product with Serializable

The set of exceptions that are potentially thrown by a specific method. This includes the set of exceptions thrown by (transitively) called methods (if any). The property does not take the exceptions of methods which override the respective method into account. Nevertheless, in case of a method call all potential receiver methods are taken into consideration.

Note that it may be possible to compute some meaningful upper type bound for the set of thrown exceptions even if methods are called for which the set of thrown exceptions is unknown. This is generally the case if those calls are all done in a try block but the catch/finally blocks only calls known methods - if any. An example is shown next and even if we assume that we don't know the exceptions potentially thrown by Class.forName, we could still determine that this method will never throw an exception.

object Validator {
     def isAvailable(s : String) : Boolean = {
         try { Class.forName(s); true} finally {return false;}
     }
}

Information about ThrownExceptions is generally associated with DeclaredMethods. I.e., the information is not attached to Method objects!

Note that the top-value of the lattice is the empty set and the bottom value is the set of all exceptions.

Linear Supertypes
Serializable, Serializable, Product, Equals, ThrownExceptionsPropertyMetaInformation, Property, PropertyMetaInformation, PropertyKind, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ThrownExceptions
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. ThrownExceptionsPropertyMetaInformation
  7. Property
  8. PropertyMetaInformation
  9. PropertyKind
  10. AnyRef
  11. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ThrownExceptions(types: TypesSet)

Type Members

  1. final type Self = ThrownExceptions
    Definition Classes
    ThrownExceptionsPropertyMetaInformation → PropertyMetaInformation

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. final def asOrderedProperty: OrderedProperty
    Definition Classes
    Property
  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. final def id: Int
    Definition Classes
    PropertyMetaInformation → PropertyKind
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def isOrderedProperty: Boolean
    Definition Classes
    Property
  13. final def key: PropertyKey[ThrownExceptions]
    Definition Classes
    ThrownExceptions → PropertyMetaInformation
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  18. def throwsNoExceptions: Boolean

    Returns true if and only if the method does not yet throw exceptions.

    Returns true if and only if the method does not yet throw exceptions. I.e., if this property is still refinable then this property may still change. Otherwise, the analysis was able to determine that no exceptions are thrown.

  19. def toString(): String
    Definition Classes
    ThrownExceptions → AnyRef → Any
  20. val types: TypesSet
  21. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Property

Inherited from PropertyMetaInformation

Inherited from PropertyKind

Inherited from AnyRef

Inherited from Any

Ungrouped