github.com/qioalice/ekago/v3@v3.3.2-0.20221202205325-5c262d586ee4/ekaerr/namespace_builtin.go (about) 1 // Copyright © 2020. All rights reserved. 2 // Author: Ilya Stroy. 3 // Contacts: iyuryevich@pm.me, https://github.com/qioalice 4 // License: https://opensource.org/licenses/MIT 5 6 package ekaerr 7 8 var ( 9 // CommonErrors is a namespace for general purpose errors designed for universal usage. 10 // These errors should typically be used in opaque manner, implying no handing in user code. 11 // When handling is required, it is best to use custom error types. 12 CommonErrors = newNamespace("Common", false) 13 14 // REMINDER 15 // DO NOT FORGOT USE PRIVATE NAMESPACE CONSTRUCTOR IF YOU WILL ADD A NEW 16 // BUILTIN NAMESPACES! 17 // AND USE CUSTOM == FALSE IN THAT CASE! 18 )