org.netbeans.libs.git/1 1.1

org.netbeans.libs.git
Class GitException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.netbeans.libs.git.GitException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
GitException.AuthorizationException, GitException.CheckoutConflictException, GitException.MissingObjectException, GitException.NotMergedException, GitException.RefUpdateException

public class GitException
extends Exception

A general exception thrown when an error occurs while running git commands.

See Also:
Serialized Form

Nested Class Summary
static class GitException.AuthorizationException
          Thrown when an authentication or authorization to a remote repository fails because of incorrect credentials.
static class GitException.CheckoutConflictException
          Thrown when a file cannot be checked out into the working tree because it would result in a local conflict.
static class GitException.MissingObjectException
          Describes an error when a non existent git object is tried to be loaded.
Usually is thrown when a caller passes a name of a branch or tag or a non-existent commit id to a git command.
static class GitException.NotMergedException
          Thrown to notify a caller of the fact that a revision he passed has not been fully merged into a current HEAD yet.
static class GitException.RefUpdateException
           
 
Constructor Summary
GitException(String message)
          There is no cause exception but has an error message.
GitException(String message, Throwable ex)
          There is a cause exception and has its own error message
GitException(Throwable t)
          Encapsulates a cause exception.
 
Method Summary
 
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
 

Constructor Detail

GitException

public GitException(Throwable t)
Encapsulates a cause exception.

Parameters:
t - cause exception

GitException

public GitException(String message)
There is no cause exception but has an error message.

Parameters:
message - error description

GitException

public GitException(String message,
                    Throwable ex)
There is a cause exception and has its own error message

Parameters:
message - error description
ex - cause exception

org.netbeans.libs.git/1 1.1

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.