Mentawai Web Framework

Compare Revisions

Ignore whitespace Rev 353 → Rev 354

/trunk/src/main/java/org/mentawai/core/StreamConsequence.java
96,6 → 96,8
 
private String keyForFilename = FILENAME;
 
private boolean quietAbort;
 
/**
* Creates a new instance of the StreamConsequence class.
* The content type and everything else will be dynamic, in
104,6 → 106,15
public StreamConsequence() {
 
}
public StreamConsequence(boolean quietAbort) {
this.quietAbort = quietAbort;
}
public StreamConsequence(String contentType, boolean quietAbort) {
this(quietAbort);
this.contentType = contentType;
}
 
/**
* Creates a new instance of the StreamConsequence class,
225,7 → 236,11
throw new ConsequenceException("Cannot find stream: " + keyForStream);
}
} catch(Exception e) {
throw new ConsequenceException(e);
if( !(e instanceof IOException && quietAbort) ) {
throw new ConsequenceException(e);
}
}
}