See the Writer implementation for detailed diagnostics.
Writer
pub const CodePointError = Error || error{InvalidCodepoint}