You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

LuPromiseError.java 740B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. package com.luticate.utils.dbo;
  2. /**
  3. * Created by robin on 10/22/16.
  4. */
  5. public class LuPromiseError {
  6. private String _error;
  7. private int _statusCode;
  8. public LuPromiseError()
  9. {
  10. }
  11. public LuPromiseError(String error, int statusCode)
  12. {
  13. _error = error;
  14. _statusCode = statusCode;
  15. }
  16. public String getError() {
  17. return _error;
  18. }
  19. public void setError(String error) {
  20. _error = error;
  21. }
  22. public int getStatusCode() {
  23. return _statusCode;
  24. }
  25. public void setStatusCode(int statusCode) {
  26. _statusCode = statusCode;
  27. }
  28. @Override
  29. public String toString() {
  30. return _error + " (Status code : " + _statusCode + ")";
  31. }
  32. }