org.apache.pdfbox.exceptions
Class SignatureException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.pdfbox.exceptions.SignatureException
All Implemented Interfaces:
Serializable

public class SignatureException
extends Exception

An exception that indicates a problem during the signing process.

Version:
$Revision: $
Author:
Thomas Chojecki
See Also:
Serialized Form

Field Summary
static int CERT_PATH_CHECK_INVALID
           
static int INVALID_PAGE_FOR_SIGNATURE
           
static int NO_SUCH_ALGORITHM
           
static int UNSUPPORTED_OPERATION
           
static int VISUAL_SIGNATURE_INVALID
           
static int WRONG_PASSWORD
           
 
Constructor Summary
SignatureException(int errno, String msg)
          Constructor.
SignatureException(int errno, Throwable e)
          Constructor.
SignatureException(String msg)
          Constructor.
SignatureException(Throwable e)
          Constructor.
 
Method Summary
 int getErrNo()
          A error number to fulfill this exception
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

WRONG_PASSWORD

public static final int WRONG_PASSWORD
See Also:
Constant Field Values

UNSUPPORTED_OPERATION

public static final int UNSUPPORTED_OPERATION
See Also:
Constant Field Values

CERT_PATH_CHECK_INVALID

public static final int CERT_PATH_CHECK_INVALID
See Also:
Constant Field Values

NO_SUCH_ALGORITHM

public static final int NO_SUCH_ALGORITHM
See Also:
Constant Field Values

INVALID_PAGE_FOR_SIGNATURE

public static final int INVALID_PAGE_FOR_SIGNATURE
See Also:
Constant Field Values

VISUAL_SIGNATURE_INVALID

public static final int VISUAL_SIGNATURE_INVALID
See Also:
Constant Field Values
Constructor Detail

SignatureException

public SignatureException(String msg)
Constructor.

Parameters:
msg - A msg to go with this exception.

SignatureException

public SignatureException(int errno,
                          String msg)
Constructor.

Parameters:
errno - A error number to fulfill this exception
msg - A msg to go with this exception.

SignatureException

public SignatureException(Throwable e)
Constructor.

Parameters:
e - The exception that should be encapsulate.

SignatureException

public SignatureException(int errno,
                          Throwable e)
Constructor.

Parameters:
errno - A error number to fulfill this exception
e - The exception that should be encapsulate.
Method Detail

getErrNo

public int getErrNo()
A error number to fulfill this exception

Returns:
the error number if available, otherwise 0


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.