Click or drag to resize

ErrorMessageStrings Class

Error message strings
Inheritance Hierarchy
SystemObject
  SanteDB.Core.i18nErrorMessageStrings

Namespace: SanteDB.Core.i18n
Assembly: SanteDB.Core.i18n (in SanteDB.Core.i18n.dll) Version: 3.0.2081-alpha+f0d80b893f602b4d9aee01281f314a5a3e3d3779
Syntax
public static class ErrorMessageStrings

The ErrorMessageStrings type exposes the following members.

Fields
 NameDescription
Public fieldStatic memberALREADY_HAS_WHERE Expression already has a where clause
Public fieldStatic memberAPP_CLAIM_GEN_ERR String like: Error modifying claims on application
Public fieldStatic memberAPP_DELETE_ERROR General error deleting application {name}
Public fieldStatic memberAPP_UPDATE_ERROR General error updating application {name}
Public fieldStatic memberARGUMENT_NULL Argument was null
Public fieldStatic memberARGUMENT_RANGE Argument was out of range
Public fieldStatic memberAUTH_APP_CREATE Error creating device credential {name}
Public fieldStatic memberAUTH_APP_GENERAL General error authenticating application
Public fieldStatic memberAUTH_APP_INVALID Invalid application id or secret
Public fieldStatic memberAUTH_APP_LOCKED Application is locked until {time}
Public fieldStatic memberAUTH_CANCELLED Authentication was cancelled
Public fieldStatic memberAUTH_CERT_ALREADY_ASSIGNED String like: The certificate {x5a} has already been associated with another identity
Public fieldStatic memberAUTH_CERT_CREATE_GEN String like: General error creating authentication certificate
Public fieldStatic memberAUTH_CERT_GENERAL String like: General error performing certificate authentication
Public fieldStatic memberAUTH_CERT_NOT_BEFORE_AFTER String like: Certificate time is not valid (check not before and not after data)
Public fieldStatic memberAUTH_CERT_TFA_INVALID String like: Two Factor Authentication is not supported with certificate authentication
Public fieldStatic memberAUTH_DEV_CREATE Error registering device {name}
Public fieldStatic memberAUTH_DEV_GENERAL General error authenticating device
Public fieldStatic memberAUTH_DEV_INVALID Invalid device identifier or secret
Public fieldStatic memberAUTH_DEV_LOCAL_ONLY_SUPPORTED Only local devices can be authenticated with this provider
Public fieldStatic memberAUTH_DEV_LOCKED Device account locked until {time}
Public fieldStatic memberAUTH_NO_CERT_MAP String like: This identity or certificate is not mapped for authentication between {identity} and {thumbprint}
Public fieldStatic memberAUTH_USR_GENERAL General error authenticating user
Public fieldStatic memberAUTH_USR_INVALID Invalid username or password
Public fieldStatic memberAUTH_USR_LOCKED User account is locked until {time}
Public fieldStatic memberAUTH_USR_REAUTH_NOT_ALLOWED Reauthorization of this principal is not permitted
Public fieldStatic memberAUTH_USR_TFA_REQ User requires MFA authentication
Public fieldStatic memberBACKUP_GEN_ERR String like: General error working with backup system
Public fieldStatic memberBACKUP_POLICY_REQUIRES_ENCRYPTION String like: Configured backup policy requires backups to have encryption
Public fieldStatic memberBACKUP_RESTORE_ERR String like: Error restoring backup information
Public fieldStatic memberBI_QUERY_ERR String like: Error executing BI metadata query
Public fieldStatic memberBI_READ_ERR String like: Error executing BI read for {id}
Public fieldStatic memberBI_STORE_ERR String like: Error executing BI store for {id}
Public fieldStatic memberCDSS_LIBRARY_MANAGE_ERROR String like: General error persisting CDSS library
Public fieldStatic memberCONNECTION_REQUIRED String like: This operation requires an active connection to the central server
Public fieldStatic memberDATA_CIRCULAR_DEPENDENCY Circular dependency
Public fieldStatic memberDATA_DELETE_MODE_SUPPORT Delete mode / method {mode} is not supported
Public fieldStatic memberDATA_DEPENDENT_ENSURE_ERROR String like: Error ensuring dependent value {data} exists
Public fieldStatic memberDATA_GENERAL Unspecified database error
Public fieldStatic memberDATA_KEY_PROPERTY_DISAGREEMENT The key on key property {keyProperty} does not match the data on data property {dataProperty}
Public fieldStatic memberDATAMART_CREATE_ERROR String like: Error while creating data mart {id}
Public fieldStatic memberDATAMART_DROP_ERROR String like: Error while dropping data mart {id}
Public fieldStatic memberDATAMART_MANAGE_ERROR String like: General error in datamart manager
Public fieldStatic memberDATAMART_REFRESH_ERROR String like: Error while refreshing data mart {id}
Public fieldStatic memberDATAQUALITY_CONFIG_READ_ERROR String like: General error reading data quality configuration
Public fieldStatic memberDATAQUALITY_CONFIG_WRITE_ERROR String like: General error writing data quality configuration
Public fieldStatic memberDEV_CLAIM_GEN_ERR String like: Error modifying claims on device
Public fieldStatic memberDEV_DELETE_ERROR General error deleting device
Public fieldStatic memberELEVATED_SESSION_NO_EXTENSION Elevated sessions cannot be extended
Public fieldStatic memberEXTENSION_INVALID_TYPE String like: The extension type {extensionType} is invalid for the extension {extension}
Public fieldStatic memberFETCH_APPLICATION The application {name} doesn't exist
Public fieldStatic memberFETCH_APPLICATION_KEY The application {key} doesn't exist
Public fieldStatic memberFETCH_DEVICE_KEY The device {key} doesn't exist
Public fieldStatic memberFOREIGN_DATA_FLD_ERR String like: Could not process foreign data field {field} at {row} due to {ex}
Public fieldStatic memberFOREIGN_DATA_GEN_ERR String like: General error applying the mapping at {row} because of {ex}
Public fieldStatic memberFOREIGN_DATA_INVALID_STATE String like: The staged foreign data is not in a valid state to perform this operation
Public fieldStatic memberFOREIGN_DATA_MANAGE_ERROR String like: General error in foreign data stage manager
Public fieldStatic memberFOREIGN_DATA_MAP_ERROR String like: Error applying transform at row {row}
Public fieldStatic memberFOREIGN_DATA_MAP_NOT_FOUND String like: The foreign data map {map} which is referenced on this foreign data cannot be found
Public fieldStatic memberFOREIGN_DATA_MAP_REQUIRED_MISSING String like: The field {field} at row {row} is null or missing a value whenone is required
Public fieldStatic memberFOREIGN_DATA_TARGET_MISSING String like: {field} with value {value} could not be translated - check for missing mapping data (at row {row})
Public fieldStatic memberFOREIGN_DATA_TRANSFORM_ERROR String like: Error applying {name} to value
Public fieldStatic memberFOREIGN_DATA_TRANSFORM_MISSING String like: {field} with value {value} could not be translated - check for missing mapping data (at row {row})
Public fieldStatic memberFOREIGN_DATA_TRANSFORM_MISSING_TARGET String like: Could not apply the map becuase the map is missing a target
Public fieldStatic memberFOREIGN_DATA_UNSUPPORTED_FORMAT String like: The foreign data format {format} cannot be interpreted by this instance of SanteDB
Public fieldStatic memberFOREIGN_MAP_NOT_FOUND String like: The foreign data map for {subsetName} could not be found
Public fieldStatic memberINVALID_EXPRESSION_TYPE Invalid expression type provided. Expected {expected} but got {actual}
Public fieldStatic memberINVALID_STATE Object is not in a state which permits this operation
Public fieldStatic memberJOB_SCHEDULE_ASSIGN String like: Error while assigning job schedule for {job}
Public fieldStatic memberJOB_SCHEDULE_QUERY String like: Error while querying job schedules
Public fieldStatic memberJOB_STATE_QUERY String like: Error while querying job state
Public fieldStatic memberJOB_STATE_SET String like: Error while assigning job state
Public fieldStatic memberMATCH_CONFIG_ERR String like: Error storing match configuration {id}
Public fieldStatic memberMISSING_ARGUMENT Required argument missing
Public fieldStatic memberMISSING_SERVICE Service is missing
Public fieldStatic memberNON_IDENTITY_UPDATE Attempt was made to update an object without an identifier
Public fieldStatic memberNOT_FOUND {type} with ID {id} was not found
Public fieldStatic memberNOT_PERMITTED Operation is not permitted
Public fieldStatic memberOBSOLETE_FUNCTION The function {name} is obsolete - please consult the latest developer documentation
Public fieldStatic memberRELATED_OBJECT_NOT_FOUND Related object not found
Public fieldStatic memberROL_ASSOC Error assigning roles {role} to/from {user}
Public fieldStatic memberROL_CREATE_GEN General error creating role
Public fieldStatic memberROL_QUERY Error querying for roles
Public fieldStatic memberSEC_POL_ASSIGN General error assigning policy to {object}
Public fieldStatic memberSEC_POL_GEN General error interacting with policy layer
Public fieldStatic memberSEC_POL_NOT_SUPPORTED Policies cannot be assigned with this object type
Public fieldStatic memberSEC_PROVENANCE_GEN_ERR General error establishing provenance data
Public fieldStatic memberSEC_PROVENANCE_UNK_ID Cannot establish provenance with an unknown identity
Public fieldStatic memberSEC_ROL_ASSIGN General error assigning role {role} to {user}
Public fieldStatic memberSEC_ROL_GEN General error creating a role
Public fieldStatic memberSEQUENCE_MORE_THAN_ONE Sequence has more than one element
Public fieldStatic memberSEQUENCE_NO_ELEMENTS Sequence contains no elements
Public fieldStatic memberSESSION_ABANDON Session was abandoned
Public fieldStatic memberSESSION_ASSIGNED_FACILITY_MISMATCH String like: The user's assigned facilities {assigned} do not match the configured facility {allowed}
Public fieldStatic memberSESSION_ASSIGNED_FACILITY_MISSING String like: This service requires you to be assigned to a registered facility, however it appears you are not. Please contact your administrator to have them assign them to an active facility
Public fieldStatic memberSESSION_AUDIENCE_CHANGED String Like: Session audience has changed on refresh - not permitted!
Public fieldStatic memberSESSION_EXPIRE Session is expired
Public fieldStatic memberSESSION_GEN_ERR General error establishing session
Public fieldStatic memberSESSION_IDENTITY_INVALID Session identity is invalid
Public fieldStatic memberSESSION_IDENTITY_LOCKED Session identity is locked
Public fieldStatic memberSESSION_MISSING_IDENTITY_DATA Session is missing identity data
Public fieldStatic memberSESSION_NO_APPLICATION_ID Session has no application security information
Public fieldStatic memberSESSION_NOT_AUTH_PRINCIPAL Session creation attempted on an unauthenticated principal
Public fieldStatic memberSESSION_NOT_CLAIMS_PRINCIPAL Session requires a claims principal to proceed
Public fieldStatic memberSESSION_NOT_VALID Session token is not yet valid
Public fieldStatic memberSESSION_OVERRIDE_WITH_INSUFFICIENT_DATA Attempted override without sufficient data
Public fieldStatic memberSESSION_REFRESH_EXPIRE Session refresh token is expired
Public fieldStatic memberSESSION_REQUIRE_FACILITY String like: To establish a session on this device, a facility must be selected
Public fieldStatic memberSESSION_TAMPER Session token has been tampered
Public fieldStatic memberSESSION_TOKEN_INVALID Session token is not valid (time constraint)
Public fieldStatic memberSET_LOCKOUT General error setting the lockout
Public fieldStatic memberSIG_CERT_ALREADY_ASSIGNED String like: Signing certificate is already assigned to another device
Public fieldStatic memberSIG_CERT_CREATE_GEN String like: Error assigning signing certificate {subject} to {identity}
Public fieldStatic memberSIG_CERT_GENERAL String like: General error querying signing certificates
Public fieldStatic memberSIG_CERT_REMOVE_GEN String like: Error removing signing certificate {subject} from {identity}
Public fieldStatic memberSIGNATURE_INVALID String like: The specified data has failed digital signature validation
Public fieldStatic memberSYNC_PULL_PROBLEM String like: There was a problem pulling data from the remote server - {error}
Public fieldStatic memberTIMEOUT Timeout ocurred during {operation}
Public fieldStatic memberTODO The function is not implemented yet
Public fieldStatic memberUPDATE_SECRET Error setting the secret for a device or application
Public fieldStatic memberUPSTREAM_AUTH_ERR String like: Error authenticating the device against the upstream
Public fieldStatic memberUPSTREAM_CANNOT_JOIN_YOURSELF String like: The upstream cannot be the same as the client
Public fieldStatic memberUPSTREAM_CLAIMS_READONLY String like: Claims from an upstream identity cannot be modified.
Public fieldStatic memberUPSTREAM_GEN_ERR String like: General error interacting with upstream
Public fieldStatic memberUPSTREAM_JOIN_CANNOT_GENERATE_CERTIFICATE String like: Upstream requires certificate authentication but this device cannot generate certificates
Public fieldStatic memberUPSTREAM_JOIN_CERTIFICATE_HOLD String like: Upstream approval of certificate request from this device has been witheld with status {status} (CA response: {message})
Public fieldStatic memberUPSTREAM_JOIN_DEVICE_DUPLICATE String like: Device {device} has already been registered
Public fieldStatic memberUPSTREAM_JOIN_ERR String like: Error joining upstream domain
Public fieldStatic memberUPSTREAM_PATCH_ERR String like: Error applying patch on server. Patch was {patch}
Public fieldStatic memberUPSTREAM_READ_ERR String like: Error reading {data} from upstream
Public fieldStatic memberUPSTREAM_VERSION_MISMATCH String like: Remote server version is incompatible with this interface (remote: {remote})
Public fieldStatic memberUPSTREAM_WRITE_ERR String like: Error sending {data} to upstream
Public fieldStatic memberUSER_CLAIM_GEN_ERR General error reading or setting claim
Public fieldStatic memberUSR_CHL_DUP_RSP String like Challenge response cannot be the same as previous
Public fieldStatic memberUSR_CHL_GEN_ERR General error with security challenge
Public fieldStatic memberUSR_CREATE_GEN Error creating user
Public fieldStatic memberUSR_DEL_ERR Error deleting user
Public fieldStatic memberUSR_GEN_ERR General error updating user
Public fieldStatic memberUSR_INVALID Invalid user
Public fieldStatic memberUSR_PWD_COMPLEXITY Password does not meet complexity
Public fieldStatic memberUSR_PWD_GEN_ERR General error setting password
Public fieldStatic memberUSR_PWD_HISTORY Password history violation
Top
Remarks

It is recommended that these strings be used in conjuction with ILocalizationService. This allows implementers of SanteDB software to customize the error messages thrown from the server via applets.

You should use the ILocalization method when:

  • The class is a service operating in the ApplicationServiceContext
  • The class is passing a REST based exception
  • The class is otherwise throwing end-user facing exceptions

If the class is merely throwing internal, or developer exceptions or if it is a standalone class you should use the ErrorMessages constants

See Also