Versions in this module Expand all Collapse all v0 v0.0.6 Mar 28, 2022 Changes in this version type ErrorCode + const HasNoHistoricalClaimsError v0.0.5 Nov 13, 2021 v0.0.4 Nov 13, 2021 Changes in this version type ErrorCode + const GenerateTempPINError + const GetInviteLinkError + const SendInviteSMSError v0.0.3 Aug 10, 2021 v0.0.2 Aug 9, 2021 v0.0.1 Jul 19, 2021 Changes in this version + func ErrorMap(err error) map[string]string + func ReportErr(w http.ResponseWriter, err error, status int) + func RespondWithError(w http.ResponseWriter, code int, err error) + func RespondWithJSON(w http.ResponseWriter, code int, payload []byte) + type CustomError struct + Code int + Err error + Message string + func (e *CustomError) Error() string + type ErrorCode int + const AddNewRecordError + const CoverAlreadyExists + const EmailAddressInUse + const ExpectedCardToBeTypeString + const FailedCreateMemberProfile + const FailedCreateMemberProfileNotificationPayload + const FailedToFetchDependants + const FailedToLookUpEligibility + const HasSladeCard + const InsuranceDetailsNotCoverLinked + const Internal + const InvalidCover + const InvalidCredentials + const InvalidEnum + const InvalidFlavour + const InvalidPhoneNumberFormat + const InvalidPushTokenLength + const InvalidSladeCode + const KYCAlreadySubmitted + const LoggedInUserIsNotAnAdmin + const MinorMember + const MissingInput + const NavigationActionsError + const NilEligibilityMember + const NilNotificationPayloadNode + const NilPayerDetails + const NoBeneficiaryWithMemberNumber + const NoConfirmedPhoneNumbers + const NotARecognizedDocumentType + const OK + const OTPVerificationFailed + const PINError + const PINMismatch + const PINNotFound + const PhoneNumberInUse + const ProfileNotFound + const ProfileSuspended + const PublishNudgeFailure + const RecordNotFound + const RoleNotValid + const UnableToAddCover + const UnableToCheckIfUserIsAnAdmin + const UnableToFetchProviderList + const UnableToFindProvider + const UnableToFindUserBioData + const UnableToMapMemberRequestNotification + const UnableToRetrieveMemberRequestNotifications + const UnableToRetrieveNotification + const UnableToSaveMemberProfileRequest + const UnableToSaveNotification + const UnableToSendText + const UndefinedArguments + const UnknownStateProvided + const UnlinkedCover + const UserNotAuthorizedToAccessThisResource + const UserNotFound + const UsernameInUse + const WrongNodeType