Skip to content

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

Draft
Enigamict wants to merge 1 commit intomainfrom
feat/core-error
Draft

feat(error): implement core::error::Error for error types#674
Enigamict wants to merge 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

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.

1 participant