/* © SRSoftware 2025 */
package de.srsoftware.umbrella.core;

public class Errors {
	public static final String ADDRESS_MISSING = "{object} address does not contain street address / post code / city";

	public static final String FAILED_TO_ADD_COLUMN               = "Failed to add {name} column to {table} table";
	public static final String FAILED_TO_ADD_PROPERTY_TO_ITEM     = "Failed to add new property to item {object}";
	public static final String FAILED_TO_ASSIGN_A_TO_B            = "Failed to assign {a} to {b}.";
	public static final String FAILED_TO_CHECK_ENTITY_AVAILABLE   = "Failed to check availability of {object}";
	public static final String FAILED_TO_CHECK_FILE_PERMISSIONS   = "Failed to check file permissions!";
	public static final String FAILED_TO_CREATE_STATE             = "Failed to create custom state!";
	public static final String FAILED_TO_CREATE_TABLE             = "Failed to create table `{name}`";
	public static final String FAILED_TO_DROP_OBJECT              = "Failed to drop {object}!";
	public static final String FAILED_TO_DROP_ENTITY_OF_ENTITY    = "Failed to drop {dropped_type} {object} from {related_type} {related}!";
	public static final String FAILED_TO_DROP_NOTES               = "Failed to delete notes of ({module} {id})";
	public static final String FAILED_TO_GET_FREE_ID              = "Failed to query free ID";
	public static final String FAILED_TO_LIST_ENTITIES            = "Failed to list {type}";
	public static final String FAILED_TO_LOAD_CHILD_LOCATIONS     = "Failed to load child locations for {parent}";
	public static final String FAILED_TO_LOAD_OBJECT_MEMBERS      = "Failed to load members of {object}";
	public static final String FAILED_TO_LOAD_ENTITIES_OF_OWNER   = "Failed to load {type} of {owner}!";
	public static final String FAILED_TO_LOAD_CUSTOMER_PRICE      = "Failed to load customer price (company: {company}, customer: {customer}, item: {item})";
	public static final String FAILED_TO_LOAD_CUSTOMER_SETTINGS   = "Failed to load customer settings (company: {company}, document type: {type})";
	public static final String FAILED_TO_LOAD_OBJECT              = "Failed to load {object}!";
	public static final String FAILED_TO_LOAD_OBJECT_BY_ID        = "Failed to load {object} by id (id)!";
	public static final String FAILED_TO_MOVE                     = "Failed to move {old} to {new}!";
	public static final String FAILED_TO_READ_FROM_TABLE          = "Failed to read {field} from {table}!";
	public static final String FAILED_TO_READ_LAST_DOCID          = "Failed to read last document id";
	public static final String FAILED_TO_SEARCH_DB                = "Failed to search in {module} db";
	public static final String FAILED_TO_STORE_OBJECT             = "Failed to store {object}";
	public static final String FAILED_TO_SWITCH_POSITIONS         = "Failed to switch positions {a} and {b} of document {document}";
	public static final String FAILED_TO_UPDATE_COLUMN            = "Failed to update column {old} → {new} of {table}";
	public static final String FAILED_TO_UPDATE_OBJECT            = "Failed to update {object} in database";
	public static final String INVALID_EMAIL                      = "\"{email}\" is not a valid email address!";
	public static final String INVALID_FIELD                      = "Expected {field} to be {expected}!";
	public static final String INVALID_URL                        = "\"{url}\" is not a valid URL!";
	public static final String MISSING_CONFIG                     = "Config is missing value for {key}!";
	public static final String MISSING_FIELD                      = "Json is missing {field} field!";
	public static final String MISSING_NEW_ITEM_ID                = "Old item id ({id}) has no new counterpart!";
	public static final String NO_MEMBER                          = "You are not a member of {object}!";
	public static final String UNEXPECTED_ITEM_ID_FORMAT          = "Expected old item ID to be of the form ss:dd:dd, encountered {object}!";
	public static final String UNKNOWN_ITEM_LOCATION              = "Item {object} of {owner} refers to location {location}, which is unknown!";
}
