package w3c.model.www.pep.altlib;
public class ErrorContext implements HttpErrors
int error = REQUEST_OK;
public void clear () {error = REQUEST_OK;}
public void setError ( int error) {this.error = error;}
public boolean promoteError ( int error) {
if (this.error != REQUEST_OK || this.error == error))
return false;
this.error = error;
return true;
}
public int getError () {return error;}