AutoApi.FailureMessageState.from_command

You're seeing just the function from_command, go back to AutoApi.FailureMessageState module for more information.
Link to this function

from_command(command, reason, description)

View Source

Specs

from_command(AutoApi.Command.t(), failure_reason(), String.t()) :: t()

Creates a failure state based on a command

Example

iex> command = AutoApi.GetCommand.new(AutoApi.RaceCapability, [])
iex> Elixir.AutoApi.FailureMessageState.from_command(command, :oem_error, "Vehicle is not available")
%Elixir.AutoApi.FailureMessageState{
  failed_message_id: %AutoApi.Property{data: 87},
  failed_message_type: %AutoApi.Property{data: 0},
  failure_reason: %AutoApi.Property{data: :oem_error},
  failure_description: %AutoApi.Property{data: "Vehicle is not available"}
}