Page MenuHomeDevCentral

Provide ErrorResult type
ClosedPublic

Authored by dereckson on Sep 4 2018, 12:22.
Tags
None
Referenced Files
F21049625: D1660.id4237.diff
Wed, Jan 14, 21:32
F21049235: D1660.diff
Wed, Jan 14, 21:27
F21008255: D1660.id4237.diff
Wed, Jan 14, 08:41
Unknown Object (File)
Fri, Jan 9, 08:12
Unknown Object (File)
Thu, Jan 8, 08:45
Unknown Object (File)
Sun, Dec 28, 09:32
Unknown Object (File)
Mon, Dec 22, 18:13
Unknown Object (File)
Tue, Dec 16, 13:29
Subscribers
None

Details

Summary

ErrorResult<T> is a convenience alias to avoid to write types like
Result<User, Box<dyn Error>>, to allow any object implementing the
standard library Error trait to serve as the error part of a result.

Test Plan
pub fn run(config: Config) -> ErrorResult<()> {
	something_dangerous()?;

	Ok(())
}

Diff Detail

Repository
rLF Limiting Factor
Lint
Lint Passed
Unit
No Test Coverage
Branch
type
Build Status
Buildable 2605
Build 2853: arc lint + arc unit

Event Timeline

dereckson created this revision.
This revision is now accepted and ready to land.Sep 4 2018, 12:22
This revision was automatically updated to reflect the committed changes.