org.netbeans.libs.git/1 1.1

org.netbeans.libs.git
Class GitException.MissingObjectException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.netbeans.libs.git.GitException
              extended by org.netbeans.libs.git.GitException.MissingObjectException
All Implemented Interfaces:
Serializable
Enclosing class:
GitException

public static class GitException.MissingObjectException
extends GitException

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.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.netbeans.libs.git.GitException
GitException.AuthorizationException, GitException.CheckoutConflictException, GitException.MissingObjectException, GitException.NotMergedException, GitException.RefUpdateException
 
Constructor Summary
GitException.MissingObjectException(String objectName, GitObjectType objectType)
           
GitException.MissingObjectException(String objectName, GitObjectType objectType, Throwable ex)
           
 
Method Summary
 String getObjectName()
           
 GitObjectType getObjectType()
           
 
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.MissingObjectException

public GitException.MissingObjectException(String objectName,
                                           GitObjectType objectType)
Parameters:
objectName - name or id of an object being resolved.
objectType - type of an object being resolved.

GitException.MissingObjectException

public GitException.MissingObjectException(String objectName,
                                           GitObjectType objectType,
                                           Throwable ex)
Parameters:
objectName - name or id of an object being resolved.
objectType - type of an object being resolved.
ex - cause exception
Method Detail

getObjectName

public String getObjectName()
Returns:
name or id of an object unable to been resolved.

getObjectType

public GitObjectType getObjectType()
Returns:
kind of a git object unable to been resolved.

org.netbeans.libs.git/1 1.1

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