View source code
							
							
						
								Display the source code in std/concurrency.d from which this
								page was generated on github.
							
						
							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
								local clone.
							
						Class std.concurrency.OwnerTerminated
Thrown on calls to receive if the thread that spawned the receiving
 thread has terminated and no more messages exist.
						
					
				Constructors
| Name | Description | 
|---|---|
| this(t, msg) | 
Fields
| Name | Type | Description | 
|---|---|---|
| file | string | The file name of the D source code corresponding with where the error was thrown from. | 
| info | object | The stack trace of where the error happened. This is an opaque object
 that can either be converted to string, or iterated over with foreachto extract the items in the stack trace (as strings). | 
| infoDeallocator | nothrow void function(object | If set, this is used to deallocate the TraceInfo on destruction. | 
| line | ulong | The line number of the D source code corresponding with where the error was thrown from. | 
| msg | string | A message describing the error. | 
Properties
| Name | Type | Description | 
|---|---|---|
| next[get] | inout(Throwable) | |
| next[set] | Throwable | Replace next in chain with tail.
 UsechainTogetherinstead if at all possible. | 
Methods
| Name | Description | 
|---|---|
| chainTogether() | Append e2to chain of exceptions that starts withe1. | 
| factory(classname) | Create instance of class specified by the fully qualified name classname. The class must either have no constructors or have a default constructor. | 
| message() | Get the message describing the error. | 
| opApply(dg) | Loop over the chain of Throwables. | 
| opCmp(o) | Compare with another Object obj. | 
| opEquals(o) | Test whether thisis equal too.
 The default implementation only compares by identity (using theisoperator).
 Generally, overrides and overloads foropEqualsshould attempt to compare objects by their contents.
 A class will most likely want to add an overload that takes your specific type as the argument
 and does the content comparison. Then you can override this and forward it to your specific
 typed overload with a cast. Remember to check fornullon the typed overload. | 
| refcount() | |
| toHash() | Compute hash function for Object. | 
| toString() | Overrides Objectand returns the error message.
 Internally this forwards to thetoStringoverload that
 takes a sink delegate. | 
| toString() | The Throwable hierarchy uses a toString overload that takes a
 sink delegate to avoid GC allocations, which cannot be
 performed in certain error situations.  Override this  toStringmethod to customize the error message. | 
Authors
Sean Kelly, Alex Rønne Petersen, Martin Nowak
License
					Copyright © 1999-2024 by the D Language Foundation | Page generated by ddox.