<div class="meta" robots="noindex">

</div>

Method

# Writeable.WriteError

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2019r2. Please use `Exception Handling</getting_started/debugging/exception_handling>` as a replacement.

</div>

## Description

Returns `True</api/language/true>` if there were any errors in the write operation.

## Sample code

``` xojo
If writeStream.WriteError Then
  MsgBox(Str(writeStream.LastErrorCode))
End If
```

## Compatibility

All project types on all supported operating systems.
