- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- org.eclipse.jgit.errors.TransportException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
MissingBundlePrerequisiteException,NoRemoteRepositoryException,PackProtocolException,RemoteRepositoryException,RepositoryNotFoundException,TooLargeObjectInPackException,TooLargePackException
public class TransportException extends IOException
Indicates a protocol error has occurred while fetching/pushing objects.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTransportException.StatusMore detailed exception status
-
Constructor Summary
Constructors Constructor Description TransportException(String s)Constructs an TransportException with the specified detail message.TransportException(String s, Throwable cause)Constructs an TransportException with the specified detail message.TransportException(String s, TransportException.Status status, Throwable cause)Same asTransportException(String, Throwable)+ statusTransportException(URIish uri, String s)Constructs an TransportException with the specified detail message prefixed with provided URI.TransportException(URIish uri, String s, Throwable cause)Constructs an TransportException with the specified detail message prefixed with provided URI.TransportException(URIish uri, String s, TransportException.Status status)Same asTransportException(URIish, String)+ statusTransportException(URIish uri, String s, TransportException.Status status, Throwable cause)Same asTransportException(URIish, String, Throwable)+ status
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TransportException.StatusgetStatus()Returns status-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
TransportException
public TransportException(URIish uri, String s)
Constructs an TransportException with the specified detail message prefixed with provided URI.- Parameters:
uri- URI used for transports- message
-
TransportException
public TransportException(URIish uri, String s, TransportException.Status status)
Same asTransportException(URIish, String)+ status- Parameters:
uri- see aboves- see abovestatus- status
-
TransportException
public TransportException(URIish uri, String s, Throwable cause)
Constructs an TransportException with the specified detail message prefixed with provided URI.- Parameters:
uri- URI used for transports- messagecause- root cause exception
-
TransportException
public TransportException(URIish uri, String s, TransportException.Status status, Throwable cause)
Same asTransportException(URIish, String, Throwable)+ status- Parameters:
uri- see aboves- see abovestatus- statuscause- see above
-
TransportException
public TransportException(String s)
Constructs an TransportException with the specified detail message.- Parameters:
s- message
-
TransportException
public TransportException(String s, Throwable cause)
Constructs an TransportException with the specified detail message.- Parameters:
s- messagecause- root cause exception
-
TransportException
public TransportException(String s, TransportException.Status status, Throwable cause)
Same asTransportException(String, Throwable)+ status- Parameters:
s- see abovestatus- statuscause- see above
-
-
Method Detail
-
getStatus
public TransportException.Status getStatus()
Returns status- Returns:
- status
-
-