You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make the constructor of the Error struct private to prevent direct instantiation. Instead, introduce a new make function to create a new error with a specific message. Alternatively, users can continue using the existing format function to create a new error while formatting its message.
The text was updated successfully, but these errors were encountered:
Make the constructor of the
Error
struct private to prevent direct instantiation. Instead, introduce a newmake
function to create a new error with a specific message. Alternatively, users can continue using the existingformat
function to create a new error while formatting its message.The text was updated successfully, but these errors were encountered: