https://issues.dlang.org/show_bug.cgi?id=22800
Issue ID: 22800
Summary: DDOC throw section for writeln is incomplete
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: phobos
Assignee: [email protected]
Reporter: [email protected]
https://dlang.org/phobos/std_stdio.html#.writeln
It states that only `StdioException` can be thrown, which is actually not true,
as shown by this
```d
import std.stdio;
nothrow void hello()
{
try {
writeln("Hello, World!");
} catch (StdioException) {}
}
```
or
```d
import std.stdio;
nothrow void hello()
{
try {
writeln(0);
} catch (StdioException) {}
}
```
--