org.apache.archiva.rest.api.services
Class ArchivaRestServiceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.archiva.rest.api.services.ArchivaRestServiceException
All Implemented Interfaces:
Serializable

public class ArchivaRestServiceException
extends Exception

Since:
1.4-M1
Author:
Olivier Lamy
See Also:
Serialized Form

Field Summary
private  String errorKey
           
private  String fieldName
          can return the field name of bean with issue can be null
private  int httpErrorCode
           
 
Constructor Summary
ArchivaRestServiceException(String s, int httpErrorCode, String fieldName, Throwable t)
           
ArchivaRestServiceException(String s, int httpErrorCode, Throwable t)
           
ArchivaRestServiceException(String message, String fieldName, Throwable t)
           
ArchivaRestServiceException(String message, Throwable t)
           
 
Method Summary
 String getErrorKey()
           
 String getFieldName()
           
 int getHttpErrorCode()
           
 void setErrorKey(String errorKey)
           
 void setFieldName(String fieldName)
           
 void setHttpErrorCode(int httpErrorCode)
           
 
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
 

Field Detail

httpErrorCode

private int httpErrorCode

errorKey

private String errorKey

fieldName

private String fieldName
can return the field name of bean with issue can be null

Since:
1.4-M3
Constructor Detail

ArchivaRestServiceException

public ArchivaRestServiceException(String message,
                                   Throwable t)

ArchivaRestServiceException

public ArchivaRestServiceException(String message,
                                   String fieldName,
                                   Throwable t)

ArchivaRestServiceException

public ArchivaRestServiceException(String s,
                                   int httpErrorCode,
                                   Throwable t)

ArchivaRestServiceException

public ArchivaRestServiceException(String s,
                                   int httpErrorCode,
                                   String fieldName,
                                   Throwable t)
Method Detail

getHttpErrorCode

public int getHttpErrorCode()

setHttpErrorCode

public void setHttpErrorCode(int httpErrorCode)

getErrorKey

public String getErrorKey()

setErrorKey

public void setErrorKey(String errorKey)

getFieldName

public String getFieldName()

setFieldName

public void setFieldName(String fieldName)


Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.