mirror of https://github.com/tasks/tasks
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
620 B
Java
26 lines
620 B
Java
package com.todoroo.andlib.service;
|
|
|
|
import java.io.IOException;
|
|
|
|
/**
|
|
* Exception displayed when a 500 error is received on an HTTP invocation
|
|
*
|
|
* @author Tim Su <tim@todoroo.com>
|
|
*
|
|
*/
|
|
public class HttpUnavailableException extends IOException {
|
|
|
|
private static final long serialVersionUID = 5373340422464657279L;
|
|
|
|
public HttpUnavailableException() {
|
|
super();
|
|
DependencyInjectionService.getInstance().inject(this);
|
|
}
|
|
|
|
@Override
|
|
public String getMessage() {
|
|
return "Sorry, our servers are experiencing some issues. Please try again later!"; //$NON-NLS-1$ // FIXME
|
|
}
|
|
|
|
}
|