Doc - Fix OSError.message and errorCode doc

Bug: https://github.com/dart-lang/sdk/issues/30698
Change-Id: Iae4ed07171862b44d1303fe1ba33a587b04e5aa5
Reviewed-on: https://dart-review.googlesource.com/61981
Reviewed-by: Zach Anderson <zra@google.com>
Commit-Queue: Samuel Rawlins <srawlins@google.com>
This commit is contained in:
Sam Rawlins 2018-06-25 23:45:33 +00:00 committed by commit-bot@chromium.org
parent c97f177112
commit 2876bd08fb

View file

@ -53,16 +53,14 @@ class OSError {
/** Constant used to indicate that no OS error code is available. */
static const int noErrorCode = -1;
/**
* Error message supplied by the operating system. null if no message is
* associated with the error.
*/
/// Error message supplied by the operating system. This may be `null` or
/// empty if no message is associated with the error.
final String message;
/**
* Error code supplied by the operating system. Will have the value
* [noErrorCode] if there is no error code associated with the error.
*/
/// Error code supplied by the operating system.
///
/// Will have the value [OSError.noErrorCode] if there is no error code
/// associated with the error.
final int errorCode;
/** Creates an OSError object from a message and an errorCode. */