Deprecated API

Contents

  • Deprecated Constructors
    Constructor
    Description
    Prefer ExecutionError(Error) a constructor that accepts a cause: Users of this class typically expect for instances to have a non-null cause. At the moment, you can usually still preserve behavior by passing an explicit null cause. Note, however, that passing an explicit null cause prevents anyone from calling #initCause later, so it is not quite equivalent to using a constructor that omits the cause.
    Prefer ExecutionError(String, Error) a constructor that accepts a cause: Users of this class typically expect for instances to have a non-null cause. At the moment, you can usually still preserve behavior by passing an explicit null cause. Note, however, that passing an explicit null cause prevents anyone from calling #initCause later, so it is not quite equivalent to using a constructor that omits the cause.
    Prefer UncheckedExecutionException(Throwable) a constructor that accepts a cause: Users of this class typically expect for instances to have a non-null cause. At the moment, you can usually still preserve behavior by passing an explicit null cause. Note, however, that passing an explicit null cause prevents anyone from calling #initCause later, so it is not quite equivalent to using a constructor that omits the cause.
    Prefer UncheckedExecutionException(String, Throwable) a constructor that accepts a cause: Users of this class typically expect for instances to have a non-null cause. At the moment, you can usually still preserve behavior by passing an explicit null cause. Note, however, that passing an explicit null cause prevents anyone from calling #initCause later, so it is not quite equivalent to using a constructor that omits the cause.