com.smartbear.swagger4j.impl
Class ErrorResponseImpl

java.lang.Object
  extended by com.smartbear.swagger4j.impl.ErrorResponseImpl
All Implemented Interfaces:
ErrorResponse

public class ErrorResponseImpl
extends Object
implements ErrorResponse

Default implementation of the ErrorResponse interface

See Also:
ErrorResponse

Constructor Summary
ErrorResponseImpl(int code, String reason)
           
 
Method Summary
 int getCode()
           
 String getReason()
           
 void setCode(int code)
           
 void setReason(String reason)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorResponseImpl

public ErrorResponseImpl(int code,
                         String reason)
Method Detail

getCode

public int getCode()
Specified by:
getCode in interface ErrorResponse

setCode

public void setCode(int code)
Specified by:
setCode in interface ErrorResponse

getReason

public String getReason()
Specified by:
getReason in interface ErrorResponse

setReason

public void setReason(String reason)
Specified by:
setReason in interface ErrorResponse


Copyright © 2013. All Rights Reserved.