Topic: Standard streams and exceptions
Author: Willy Wood <ofile@aquanet.co.il>
Date: 1996/08/30 Raw View
Is it not time that exceptions were incorporated into the
standard io stream classes ?
If while you are writing to a file stream, the disk is full,
unless you ar checking every output statement, you have no way
of knowing. Even if you check every statement, if the output is
made deep in a set of methods you have a lot of difficulty
reporting the problem.
Throwing an exception would alleviate this problem.
--
Willy Wood, ObjectFile, Israel.
http://www.aquanet.co.il/web/ofile/ofile.html
[ comp.std.c++ is moderated. To submit articles: try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ FAQ: http://reality.sgi.com/employees/austern_mti/std-c++/faq.html ]
[ Policy: http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu ]
Author: clamage@taumet.eng.sun.com (Steve Clamage)
Date: 1996/08/30 Raw View
In article 7AD2@aquanet.co.il, Willy Wood <ofile@aquanet.co.il> writes:
>Is it not time that exceptions were incorporated into the
>standard io stream classes ?
The draft standard incorporated exceptions into iostreams
some time ago. You can enable and disable exceptions on
individual error conditions per stream.
---
Steve Clamage, stephen.clamage@eng.sun.com
[ comp.std.c++ is moderated. To submit articles: try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ FAQ: http://reality.sgi.com/employees/austern_mti/std-c++/faq.html ]
[ Policy: http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu ]