1. Introduction
  2. User Guide
  3. Installation
  4. Testing
  5. Scripts
  6. Modules
  7. Accounts
  8. Commands
  9. Context
  10. Expect
  11. Fe
  12. Format
  13. Fs
  14. Gas
  15. Huff
  16. Json
  17. Results & Errors
  18. Requests
  19. Utils
  20. Others
    ❱
    1. Config
    2. Console
    3. Env
    4. Events
    5. Forks
    6. RPC
    7. Strings
  21. References
  22. Accounts
  23. Commands
  24. Config
  25. Context
  26. Env
  27. Error
  28. Events
  29. Expect
  30. Fe
  31. Fmt
  32. Forks
  33. Fs
  34. Gas
  35. Huff
  36. Invariants
  37. Json
  38. Pointer
  39. Result
  40. Semver
  41. Strings
  42. Utils
  43. Vulcan
  44. Watchers

Error

Custom types

Error

type Error is bytes32;

LibError

toPointer(Error err) → (Pointer)

decode(Error err) → (bytes32 id, string message, bytes data)

encodeError(function fn, string message) → (Error err)

toErrorId(function fn) → (bytes32 id)

matches(Error err, function fn) → (bool)

decodeAs(Error, function)

encodeError(function fn, string message, uint256 p0) → (Error err)

toErrorId(function fn) → (bytes32 id)

matches(Error err, function fn) → (bool)

decodeAs(Error err, function) → (uint256)

encodeError(function fn, string message, string p0) → (Error err)

toErrorId(function fn) → (bytes32 id)

matches(Error err, function fn) → (bool)

decodeAs(Error err, function) → (string)

toStringResult(Error self) → (StringResult)

toBytesResult(Error self) → (BytesResult)

toBoolResult(Error self) → (BoolResult)