All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.objectfabric.Strings Maven / Gradle / Ivy

There is a newer version: 0.9.1
Show newest version
/**
 * This file is part of ObjectFabric (http://objectfabric.org).
 *
 * ObjectFabric is licensed under the Apache License, Version 2.0, the terms
 * of which may be found at http://www.apache.org/licenses/LICENSE-2.0.html.
 * 
 * Copyright ObjectFabric Inc.
 * 
 * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
 * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 */

package org.objectfabric;

abstract class Strings { // TODO clean, use only for api

    public static final String CURRENT_NULL = "Current transaction is null. This operation can only be performed in an atomic block.";

    public static final String CURRENT_NOT_NULL = "Current transaction is not null. This operation cannot be performed from within an atomic block.";

    public static final String READ_ONLY = "Current transaction is read-only.";

    public static final String COMMITTED = "Current transaction has already been committed. It is not possible to modify objects from a listener or callback with Granularity ALL.";

    public static final String UNKNOWN_OBJECT_MODEL = "Unknown object model. You must register the object model you generated on all the sites where it is used. This error also occurs when an object model has been regenerated.";

    public static final String INVALID_ELEMENT_TYPE = "Invalid element type for this array or collection: ";

    public static final String UNSUPPORTED_TYPE = "Unsupported type. It is possible to register a custom serializer to handle additional types (Cf. Serializer). ";

    public static final String MISSING_CUSTOM_SERIALIZER = "Missing custom serializer. Cannot deserialize data that has been serialized using a custom serialializer. Cf. Serializer.";

    public static final String CLASS_VISITOR_ID_ALREADY_REGISTERED = "This class visitor ID is already registered.";

    public static final String USER_CODE_RAISED_AN_EXCEPTION = "User code raised an exception: ";

    public static final String ARGUMENT_NULL = "Argument cannot be null.";

    public static final String WRONG_OBJECTFABRIC_VERSION = "Trying to register an object model generated by a different version of ObjectFabric.";

    public static final String WRONG_WORKSPACE = "Wrong workspace. Transactions from one workspace cannot access objects from another.";

    public static final String WRONG_RESOURCE = "Wrong resource. Objects belonging to a resource cannot be added to another or reference its objects.";

    public static final String CLOSED = "This Workspace or Server has been closed.";

    public static final String PERMISSION_REJECT = "Permission: " + Permission.REJECT;

    public static final String NO_CALLBACK_FOR_EXCEPTION = "No callback were provided by the user to report this exception, logging it: ";

    public static final String TIMEOUT = "Connection time-out";

    public static final String INCOMPLETE_BLOCK = "Data block is incomplete.";

    public static final String REJECTED_INVALID_CONNECTION = "Rejected an invalid connection. Probably not an ObjectFabric client.";

    public static final String DISCONNECTED = "Disconnected.";

    public static final String URI_UNRESOLVED = "URI cannot be resolved: ";

    public static final String URI_UNSUPPORTED_SCHEME = "Unsupported URI scheme: ";

    public static final String URI_MISSING_PORT = "Port is missing: ";

    public static final String CONCURRENT_ACCESS = "Concurrent http connection.";

    public static final String LOCATION_IS_CACHE = "Location is a cache.";

    public static final String LOCATION_IS_NOT_CACHE = "Location is not a cache.";

    public static final String MAX_CACHES = "The maximum supported number of caches has been reached.";

    // Files

    public static final String CANNOT_OPEN = "Could not open: ";

    public static final String CANNOT_CREATE = "Could not create: ";

    public static final String DELETE_FILE_FAILED = "Could not delete file: ";

    private Strings() {
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy