import java.util.regex.Matcher;
import java.util.regex.Pattern;
+import org.springframework.http.HttpHeaders;
+import org.springframework.http.HttpStatus;
private final Long oldId, newId;
- protected PageMigratedException(FacebookErrorMessage error)
+ protected PageMigratedException(
+ HttpStatus status,
+ HttpHeaders headers,
+ FacebookErrorMessage error
+ )
{
- super(error);
+ super(status, headers, error);
Matcher matcher = pattern.matcher(error.message);
if (!matcher.find())
{