Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using a local clone.

dmd.errorsink

Provides an abstraction for what to do with error messages.
Authors:

Source errorsink.d

abstract class ErrorSink;
Where error/warning/deprecation messages go.
class ErrorSinkNull: dmd.errorsink.ErrorSink;
Just ignores the messages.
class ErrorSinkLatch: dmd.errorsink.ErrorSinkNull;
Ignores the messages, but sets sawErrors for any calls to error()
class ErrorSinkStderr: dmd.errorsink.ErrorSink;
Simplest implementation, just sends messages to stderr. See also: ErrorSinkCompiler.