org.apache.maven.scm.provider.integrity
Class ExceptionHandler

java.lang.Object
  extended by org.apache.maven.scm.provider.integrity.ExceptionHandler

public class ExceptionHandler
extends Object

Helper class to appropriately diagnose an APIException

Version:
$Id: ExceptionHandler.java 1.2 2011/08/22 13:06:45EDT Cletus D'Souza (dsouza) Exp $
Author:
Cletus D'Souza

Constructor Summary
ExceptionHandler(com.mks.api.response.APIException ex)
          Constructor requires a single APIException to debug
 
Method Summary
 String getCommand()
          Returns the executed command that caused the exception
 int getExitCode()
          Returns the exit codes associated with executing the command
 String getMessage()
          Returns the Message obtained from the APIException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionHandler

public ExceptionHandler(com.mks.api.response.APIException ex)
Constructor requires a single APIException to debug

Parameters:
ex - APIException
Method Detail

getMessage

public String getMessage()
Returns the Message obtained from the APIException

Returns:
message APIException String

getCommand

public String getCommand()
Returns the executed command that caused the exception

Returns:
command Complete CLI Command String

getExitCode

public int getExitCode()
Returns the exit codes associated with executing the command

Returns:
exitCode API/CLI Exit Code


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