PasswordRequiredException
Date: 2017-02-08

org.apache.commons.compress

## Class PasswordRequiredException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - java.io.IOException
      - - org.apache.commons.compress.PasswordRequiredException

- All Implemented Interfaces:
    java.io.Serializable

      public class PasswordRequiredException
      extends java.io.IOException

  Exception thrown when trying to read an encrypted entry or file without configuring a password.
  Since:
    1.10
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `PasswordRequiredException(java.lang.String name)` Create a new exception.

  - ### Method Summary

    - ### Methods inherited from class java.lang.Throwable

      `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### PasswordRequiredException

          public PasswordRequiredException(java.lang.String name)

      Create a new exception.
      Parameters:
        `name` - name of the archive containing encrypted streams or the encrypted file.