c8osdkjscore
Version:
convertigo's sdk js core
384 lines • 18.2 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var c8oUtilsCore_1 = require("../c8oUtilsCore");
var C8oExceptionMessage = (function () {
function C8oExceptionMessage() {
}
C8oExceptionMessage.notImplementedFullSyncInterface = function () {
return "You are using the default FullSyncInterface which is not implemented";
};
C8oExceptionMessage.invalidParameterValue = function (parameterName, details) {
if (details === void 0) { details = null; }
var errorMessage = "The parameter '" + parameterName + "' is invalid";
if (details != null) {
errorMessage += ", " + details;
}
return errorMessage;
};
C8oExceptionMessage.illegalArgumentInvalidEndpoint = function (endpoint) {
return "'" + endpoint + "' is not a valid Convertigo endpoint";
};
C8oExceptionMessage.wrongListener = function (c8oListener) {
return "The C8oListener class " + c8oUtilsCore_1.C8oUtilsCore.getObjectClassName(c8oListener) + " is not handled";
};
C8oExceptionMessage.illegalArgumentNullParameter = function (parameterName) {
return parameterName + " must be not null";
};
C8oExceptionMessage.missingValue = function (valueName) {
return "The " + valueName + " is missing";
};
C8oExceptionMessage.unknownValue = function (valueName, value) {
return "The " + valueName + " value " + value + " is unknown";
};
C8oExceptionMessage.unknownType = function (variableName, variable) {
return "The " + variableName + " type " + c8oUtilsCore_1.C8oUtilsCore.getObjectClassName(variable) + "is unknown";
};
C8oExceptionMessage.ressourceNotFound = function (ressourceName) {
return "The " + ressourceName + " was not found";
};
C8oExceptionMessage.illegalArgumentInvalidFullSyncDatabaseUrl = function (fullSyncDatabaseUrlStr) {
return "The fullSync database url '" + fullSyncDatabaseUrlStr + "' is not a valid url";
};
C8oExceptionMessage.FullSyncDatabaseInitFailed = function (databaseName) {
return "Failed to initialize the FullSync database '" + databaseName + "'";
};
C8oExceptionMessage.MissParameter = function (parameterName) {
return "The parameter '" + parameterName + "' is missing";
};
C8oExceptionMessage.illegalArgumentInvalidURL = function (urlStr) {
return "'" + urlStr + "' is not a valid URL";
};
C8oExceptionMessage.InvalidArgumentInvalidURL = function (urlStr) {
return "'" + urlStr + "' is not a valid URL";
};
C8oExceptionMessage.UnknownFullSyncPolicy = function (policy) {
return "Unknown the FullSync policy '" + policy + "'";
};
C8oExceptionMessage.InvalidArgumentInvalidEndpoint = function (endpoint) {
return "'" + endpoint + "' is not a valid Convertigo endpoint";
};
C8oExceptionMessage.InvalidRequestable = function (requestable) {
return "'" + requestable + "' is not a valid requestable.";
};
C8oExceptionMessage.InvalidParameterType = function (parameterName, wantedParameterType, actualParameterType) {
return "The parameter '" + parameterName + "' must be of type '" + wantedParameterType + "' and not '" + actualParameterType + "'";
};
C8oExceptionMessage.illegalArgumentIncompatibleListener = function (listenerType, responseType) {
return "The listener type '" + listenerType + "' is incompatible with the response type '" + responseType + "'";
};
C8oExceptionMessage.InvalidArgumentNullParameter = function (parameterName) {
return parameterName + " must be not null";
};
C8oExceptionMessage.InitError = function () {
return "Unable to initialize";
};
C8oExceptionMessage.InitRsainternalKey = function () {
return "Unable to initialize the RSA internal key";
};
C8oExceptionMessage.InitCouchManager = function () {
return "Unable to initialize the fullSync databases manager";
};
C8oExceptionMessage.InitSslSocketFactory = function () {
return "Unable to initialize the ssl socket factory";
};
C8oExceptionMessage.InitDocumentBuilder = function () {
return "Unable to initialize the XML document builder";
};
C8oExceptionMessage.ParseStreamToJson = function () {
return "Unable to parse the input stream to a json document";
};
C8oExceptionMessage.ParseStreamToXml = function () {
return "Unable to parse the input stream to an xml document";
};
C8oExceptionMessage.parseInputStreamToString = function () {
return "Unable to parse the input stream to a string";
};
C8oExceptionMessage.parseXmlToString = function () {
return "Unable to parse the xml document to a string";
};
C8oExceptionMessage.parseRsainternalKey = function () {
return "Unable to parse the RSA internal key";
};
C8oExceptionMessage.parseQueryEnumeratorToJson = function () {
return "Unable to parse the query to a json document";
};
C8oExceptionMessage.parseLogsToJson = function () {
return "Unable to parse logs to a json document";
};
C8oExceptionMessage.parseLogsStreamToJson = function () {
return "Unable to parse stream containing logs response to a json document";
};
C8oExceptionMessage.parseC8oReplicationResultToJson = function () {
return "Unable to parse the replication result to a json document";
};
C8oExceptionMessage.parseFullSyncDefaultResponseToJson = function () {
return "Unable to parse the default fullSync result to a json document";
};
C8oExceptionMessage.parseFullSyncPostDocumentResponseToJson = function () {
return "Unable to parse the post document fullSync result to a json document";
};
C8oExceptionMessage.parseStringToJson = function () {
return "Unable to parse the string to a JSON document";
};
C8oExceptionMessage.ParseStringToObject = function (type) {
return "Unable to parse the string (JSON):string to an object of type ";
};
C8oExceptionMessage.StringToJsonValue = function (str) {
return "Unable to translate the string '" + str + "' to a JSON value";
};
C8oExceptionMessage.retrieveRsainternalKey = function () {
return "Error during http request to get the RSA internal key";
};
C8oExceptionMessage.httpLogs = function () {
return "Error during http request to send logs to the Convertigo server";
};
C8oExceptionMessage.couchRequestGetView = function () {
return "Unable to run the view query";
};
C8oExceptionMessage.couchRequestAllDocuments = function () {
return "Unable to run the all query";
};
C8oExceptionMessage.couchRequestResetDatabase = function () {
return "Unable to run the reset query";
};
C8oExceptionMessage.couchRequestDeleteDocument = function () {
return "Unable to run the delete document query";
};
C8oExceptionMessage.couchRequestInvalidRevision = function () {
return "The revision is invalid";
};
C8oExceptionMessage.couchRequestPostDocument = function () {
return "Unable to run the post document query";
};
C8oExceptionMessage.unableToGetFullSyncDatabase = function (databaseName) {
return "Unable to get the fullSync database '" + databaseName + "' from the manager";
};
C8oExceptionMessage.couchNullResult = function () {
return "An error occured during the fullSync request, its result is null";
};
C8oExceptionMessage.couchFullSyncNotActive = function () {
return "Unable to use fullSync because it was not activated at the initialization";
};
C8oExceptionMessage.CouchDeleteFailed = function () {
return "Delete the Couch document failed";
};
C8oExceptionMessage.fullSyncPutProperties = function (properties) {
return "Unable to put the following properties in the fullSync Document: " + JSON.stringify(properties);
};
C8oExceptionMessage.fullSyncGetOrCreateDatabase = function (databaseName) {
return "Unable to get or create the fullSync database '" + databaseName + "'";
};
C8oExceptionMessage.fullSyncHandleResponse = function () {
return "Error while handling the fullSync response";
};
C8oExceptionMessage.loadKeyStore = function () {
return "Failed to load key store";
};
C8oExceptionMessage.trustAllCertificates = function () {
return "Unable to load a key store trusting all certificates";
};
C8oExceptionMessage.clientKeyStore = function () {
return "Unable to load the client key store";
};
C8oExceptionMessage.serverKeyStore = function () {
return "Unable to load the server key store";
};
C8oExceptionMessage.illegalArgumentNotFoundFullSyncView = function (viewName, databaseName) {
return "Cannot found the view '" + viewName + "' in database '" + databaseName + "'";
};
C8oExceptionMessage.unhandledResponseType = function (responseType) {
return "The response type '" + responseType + "' is not handled";
};
C8oExceptionMessage.unhandledListenerType = function (listenerType) {
return "The listener type '" + listenerType + "' is not handled";
};
C8oExceptionMessage.WrongListener = function (c8oListener) {
return "wrong listener";
};
C8oExceptionMessage.wrongResult = function (result) {
return "The response class " + c8oUtilsCore_1.C8oUtilsCore.getObjectClassName(result) + " is not handled";
};
C8oExceptionMessage.unhandledFullSyncRequestable = function (fullSyncRequestableValue) {
return "The fullSync requestable '" + fullSyncRequestableValue + "' is not handled";
};
C8oExceptionMessage.closeInputStream = function () {
return "Unable to close the input stream";
};
C8oExceptionMessage.deserializeJsonObjectFromString = function (str) {
return "Unable to deserialize the JSON object from the following string: '" + str + "'";
};
C8oExceptionMessage.postDocument = function () {
return "Unable to post document";
};
C8oExceptionMessage.getNameValuePairObjectValue = function (name) {
return "Unable to get the object value from the NameValuePair named '" + name + "'";
};
C8oExceptionMessage.queryEnumeratorToJSON = function () {
return "Unable to parse the QueryEnumerator to a JSON document";
};
C8oExceptionMessage.queryEnumeratorToXML = function () {
return "Unable to parse the QueryEnumerator to a XML document";
};
C8oExceptionMessage.addparametersToQuery = function () {
return "Unable to add parameters to the fullSync query";
};
C8oExceptionMessage.putJson = function () {
return "Failed to put data in JSON ...";
};
C8oExceptionMessage.changeEventToJson = function () {
return "Failed to parse ChangeEvent to JSON document";
};
C8oExceptionMessage.initC8oSslSocketFactory = function () {
return "Failed to initialize C8oSslSocketFactory";
};
C8oExceptionMessage.createSslContext = function () {
return "failed to create a new SSL context";
};
C8oExceptionMessage.keyManagerFactoryInstance = function () {
return "Failed to instanciate KeyManagerFactory";
};
C8oExceptionMessage.initKeyManagerFactory = function () {
return "Failed to initialize the key manager factory";
};
C8oExceptionMessage.InitHttpInterface = function () {
return "Failed to initialize the secure HTTP Interface";
};
C8oExceptionMessage.trustManagerFactoryInstance = function () {
return "Failed to instanciate KeyManagerFactory";
};
C8oExceptionMessage.initTrustManagerFactory = function () {
return "Failed to initialize the key manager factory";
};
C8oExceptionMessage.initSslContext = function () {
return "Failed to initialize the SSL context";
};
C8oExceptionMessage.initCipher = function () {
return "Failed to initialize the cipher";
};
C8oExceptionMessage.urlEncode = function () {
return "Failed to URL encode parameters";
};
C8oExceptionMessage.getParametersStringBytes = function () {
return "Failed to get parameters string bytes";
};
C8oExceptionMessage.encodeParameters = function () {
return "Failed to encode parameters";
};
C8oExceptionMessage.RunHttpRequest = function () {
return "Failed to run the HTTP request";
};
C8oExceptionMessage.generateRsainternalKey = function () {
return "Failed to generate RSA internal key";
};
C8oExceptionMessage.keyFactoryInstance = function () {
return "Failed to get KeyFactory instance";
};
C8oExceptionMessage.getCipherInstance = function () {
return "Failed to get Cipher instance";
};
C8oExceptionMessage.entryNotFound = function (entryKey) {
return "Entry key '" + entryKey + "' not found";
};
C8oExceptionMessage.c8oCallRequestToJson = function () {
return "Failed to parse c8o call request to JSON";
};
C8oExceptionMessage.getJsonKey = function (key) {
return "Failed to get the JSON key '" + key + "'";
};
C8oExceptionMessage.jsonValueToXML = function () {
return "Failed to parse JSON value to XML";
};
C8oExceptionMessage.inputStreamToXML = function () {
return "Failed to parse InputStream to an XML document";
};
C8oExceptionMessage.inputStreamReaderEncoding = function () {
return "Failed to instanciate the InputStreamReader";
};
C8oExceptionMessage.readLineFromBufferReader = function () {
return "Failed to read line from the BufferReader";
};
C8oExceptionMessage.GetLocalCacheParameters = function () {
return "Failed to get local cache parameters";
};
C8oExceptionMessage.GetLocalCachePolicy = function (policy) {
return "Failed to get local cache policy: " + policy;
};
C8oExceptionMessage.fullSyncJsonToXML = function () {
return "Failed to translate full sync JSON to XML";
};
C8oExceptionMessage.takeLog = function () {
return "Failed to take a log line in the list";
};
C8oExceptionMessage.remoteLogHttpRequest = function () {
return "Failed while running the HTTP request sending logs to the Convertigo server";
};
C8oExceptionMessage.getInputStreamFromHttpResponse = function () {
return "Failed to get InputStream from the HTTP response";
};
C8oExceptionMessage.inputStreamToJSON = function () {
return "Failed to translate the input stream to a JSON document";
};
C8oExceptionMessage.httpInterfaceInstance = function () {
return "Failed to instanciate the HTTP interface";
};
C8oExceptionMessage.FullSyncInterfaceInstance = function () {
return "Failed to instanciate the FullSync interface";
};
C8oExceptionMessage.getDocumentFromDatabase = function (documentId) {
return "Failed to get fullSync document '" + documentId + "' from the database";
};
C8oExceptionMessage.FullSyncReplicationFail = function (databaseName, way) {
return "Failed to '" + way + "' replicate the '" + databaseName + "' database";
};
C8oExceptionMessage.localCachePolicyIsDisable = function () {
return "Depending to the network state the local cache is disabled";
};
C8oExceptionMessage.localCacheDocumentJustCreated = function () {
return "The local cache document is just created (empty):string";
};
C8oExceptionMessage.illegalArgumentInvalidLocalCachePolicy = function (localCachePolicyString) {
return "The local cache policy '" + localCachePolicyString + "' is invalid";
};
C8oExceptionMessage.timeToLiveExpired = function () {
return "The time to live expired";
};
C8oExceptionMessage.InvalidLocalCacheResponseInformation = function () {
return "Local cache response informations are invalid";
};
C8oExceptionMessage.overrideDocument = function () {
return "Failed to override the fullSync document";
};
C8oExceptionMessage.handleFullSyncRequest = function () {
return "Failed while running the fullSync request";
};
C8oExceptionMessage.serializeC8oCallRequest = function () {
return "Fails to serialize the Convertigo call request";
};
C8oExceptionMessage.getResponseFromLocalCache = function () {
return "Failed to get response from the local cache";
};
C8oExceptionMessage.getResponseFromLocalCacheDocument = function () {
return "Failed to get response form the local cache document";
};
C8oExceptionMessage.handleC8oCallRequest = function () {
return "Failed while running the c8o call request";
};
C8oExceptionMessage.runHttpRequest = function () {
return "Failed to run the HTTP request";
};
C8oExceptionMessage.saveResponseToLocalCache = function () {
return "Failed to save the response to the local cache";
};
C8oExceptionMessage.RemoteLogFail = function () {
return "Failed to send log to the Convertigo server: disabling remote logging";
};
C8oExceptionMessage.FullSyncRequestFail = function () {
return "Failed to process the fullsync request";
};
C8oExceptionMessage.MissingLocalCacheResponseDocument = function () {
return "Missing local cache response document";
};
return C8oExceptionMessage;
}());
exports.C8oExceptionMessage = C8oExceptionMessage;
//# sourceMappingURL=c8oExceptionMessage.js.map