DataConversionError
Module: strata.utils • Kind: struct • Traits: Copyable, Movable, Writable
Source: strata/exceptions/errors.mojo
struct DataConversionError(Copyable, Movable, Writable)from strata.utils import DataConversionErrorException raised when data type conversion or matrix array formatting fails.
Methods Overview
Section titled “Methods Overview”| Method | Description |
|---|---|
DataConversionError.error() |
Create a formatted DataConversionError message. |
DataConversionError.write_to() |
Format a human-readable string representation to a writer. |
Method Details
Section titled “Method Details”DataConversionError.error()
Section titled “DataConversionError.error()”def error(msg: String) -> ErrorCreate a formatted DataConversionError message.
| Parameter | Type | Description |
|---|---|---|
msg |
String |
— |
Returns: Error
DataConversionError.write_to()
Section titled “DataConversionError.write_to()”def write_to(self, mut writer: Some[Writer])Format a human-readable string representation to a writer.