Skip to content

feat(error): implement core::error::Error for error types#674

Merged
ytakano merged 1 commit intomainfrom
feat/core-error
Apr 14, 2026
Merged

feat(error): implement core::error::Error for error types#674
ytakano merged 1 commit intomainfrom
feat/core-error

Conversation

@Enigamict
Copy link
Copy Markdown
Contributor

Description

ref(#204)
implementing core::error::Error for error types across awkernel_drivers and awkernel_lib.

For error types that already had a fmt::Display implementation, only impl core::error::Error for T {} was added:

  • PCIeDeviceErr
  • IxgbeDriverErr
  • IgbDriverErr
  • VfsIoError

For error types that had no Display implementation, a Display impl delegating to Debug via write!(f, "{self:?}") was added alongside core::error::Error:

  • VirtioDriverErr
  • NvmeDriverErr
  • MiiError
  • RtcError
  • UartError
  • DeviceTreeError
  • FrameBufferError 
  • NetManagerError
  • NetDevError
  • StorageDevError

The following error types remain unaddressed and are left for a follow-up:

  • IgcDriverErr
  • GenetError
  • StorageManagerError
  • VfsErrorKind
  • InMemoryDiskError
  • InitErr
  • VtdError
  • MapError
  • DmaError
  • RecvErrSendErr
  • DagError
  • TcpSocketError
  • UdpSocketError

Related links

How was this PR tested?

Notes for reviewers

@Enigamict Enigamict requested a review from ytakano March 31, 2026 02:19
@ytakano ytakano marked this pull request as ready for review April 14, 2026 02:58
@ytakano ytakano merged commit 029de2d into main Apr 14, 2026
2 checks passed
@ytakano ytakano deleted the feat/core-error branch April 14, 2026 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants