InvalidParameterError
Module: strata.utils • Kind: struct • Traits: Copyable, Movable, Writable
Source: strata/exceptions/errors.mojo
struct InvalidParameterError(Copyable, Movable, Writable)from strata.utils import InvalidParameterErrorException raised when an invalid hyperparameter value is supplied.
Methods Overview
Section titled “Methods Overview”| Method | Description |
|---|---|
InvalidParameterError.error() |
Create a formatted InvalidParameterError message. |
InvalidParameterError.write_to() |
Format a human-readable string representation to a writer. |
Method Details
Section titled “Method Details”InvalidParameterError.error()
Section titled “InvalidParameterError.error()”def error(param_name: String, reason: String) -> ErrorCreate a formatted InvalidParameterError message.
| Parameter | Type | Description |
|---|---|---|
param_name |
String |
— |
reason |
String |
— |
Returns: Error
InvalidParameterError.write_to()
Section titled “InvalidParameterError.write_to()”def write_to(self, mut writer: Some[Writer])Format a human-readable string representation to a writer.