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

com.qwlabs.q.QMessages Maven / Gradle / Ivy

There is a newer version: 0.2.354
Show newest version
package com.qwlabs.q;

import com.qwlabs.exceptions.BadRequestException;
import com.qwlabs.exceptions.CodeException;
import org.jboss.logging.annotations.Message;
import org.jboss.logging.annotations.MessageBundle;

import jakarta.inject.Inject;

import static org.jboss.logging.Messages.getBundle;

@MessageBundle(projectCode = "Q")
public interface QMessages {
    @Inject
    QMessages INSTANCE = getBundle(QMessages.class);

    @Message(value = "Invalid dialect: {0}", format = Message.Format.MESSAGE_FORMAT)
    CodeException invalidDialect(String dialect);

    @Message(value = "Invalid query: {0}", format = Message.Format.MESSAGE_FORMAT)
    BadRequestException invalidQuery(String query);

    @Message(value = "Q Engine not found", format = Message.Format.MESSAGE_FORMAT)
    CodeException engineNotFound();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy