Skip to content

ProvisioningException should have @Nullable cause #2558

Closed

Description

@agentgt

This:

  public ProvisioningException(@Nonnull Parameter parameter, @Nonnull Throwable cause) {

Should be:

  public ProvisioningException(@Nonnull Parameter parameter, @Nullable Throwable cause) {

Or you can add another constructor.

          } catch (InvocationTargetException x) {
            throw new ProvisioningException(parameter, x.getCause());

InvocationTargetException getCause may return null.

    /**
     * Returns the cause of this exception (the thrown target exception,
     * which may be {@code null}).
     *
     * @return  the cause of this exception.
     * @since   1.4
     */
    @Override
    public Throwable getCause() {
        return target;
    }

Activity

  1. changed the title [-]ProvisionException should have @Nullable cause[/-] [+]ProvisioningException should have @Nullable cause[/+] on Apr 5, 2022
  2. added this to the 2.13.1 milestone on Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions