com.atlassian.bamboo.repository
Class RepositoryException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.atlassian.bamboo.repository.RepositoryException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
InvalidRepositoryException

public class RepositoryException
extends java.lang.Exception

This class types repository errors.

See Also:
Serialized Form

Constructor Summary
RepositoryException(java.lang.String message)
          Create an exception containing the message
RepositoryException(java.lang.String message, java.lang.String stdout, java.lang.String stderr)
          Create an exception containing the message and stdout/stderr output from external command
RepositoryException(java.lang.String message, java.lang.Throwable cause)
          Create an exception containing the message and root cause
RepositoryException(java.lang.String message, java.lang.Throwable cause, java.lang.String stdout, java.lang.String stderr)
          Create an exception containing the message, root cause and stdout/stderr output from external command
RepositoryException(java.lang.Throwable cause)
           
 
Method Summary
 java.lang.String getStderr()
           
 java.lang.String getStdout()
           
 
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

RepositoryException

public RepositoryException(java.lang.String message)
Create an exception containing the message

Parameters:
message - The error message

RepositoryException

public RepositoryException(java.lang.Throwable cause)

RepositoryException

public RepositoryException(java.lang.String message,
                           java.lang.Throwable cause)
Create an exception containing the message and root cause

Parameters:
message - The error message
cause - The root cause

RepositoryException

public RepositoryException(java.lang.String message,
                           java.lang.String stdout,
                           java.lang.String stderr)
Create an exception containing the message and stdout/stderr output from external command

Parameters:
message - The error message
stdout - Command standard output
stderr - Command standard error output

RepositoryException

public RepositoryException(java.lang.String message,
                           java.lang.Throwable cause,
                           java.lang.String stdout,
                           java.lang.String stderr)
Create an exception containing the message, root cause and stdout/stderr output from external command

Parameters:
message - The error message
cause - The root cause
stdout - Command standard output
stderr - Command standard error output
Method Detail

getStderr

@Nullable
public java.lang.String getStderr()
Returns:
stderr output of external command

getStdout

@Nullable
public java.lang.String getStdout()
Returns:
stdout output of external command


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.