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: 
License: 
Source errorsink.d
Documentation https://dlang.org/phobos/dmd_errorsink.html
- abstract classErrorSink;
- Where error/warning/deprecation messages go.- nothrow voidplugSink();
- This will be called to indicate compilation has either finished or terminated, no more errors are possible - it's now the time to print any stored errors.The default implementation does nothing since most error sinks have no state
 
- classErrorSinkNull: dmd.errorsink.ErrorSink;
- Just ignores the messages.
- classErrorSinkLatch: dmd.errorsink.ErrorSinkNull;
- Ignores the messages, but sets sawErrors for any calls to error()
- classErrorSinkStderr: dmd.errorsink.ErrorSink;
- Simplest implementation, just sends messages to stderr. See also: ErrorSinkCompiler.
Copyright © 1999-2025 by the D Language Foundation | Page generated by
Ddoc on Mon Mar 31 10:27:39 2025