// Path: src/main/java/love/sola/netsupport/config/Lang.java
// public static String lang(String key) {
//     String value = messages.get(key);
//     return value == null ? "!!" + key + "!!" : value;
// }


import static love.sola.netsupport.config.Lang.lang;
/*
 * This file is part of WechatTicketSystem.
 *
 * WechatTicketSystem is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * WechatTicketSystem is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with WechatTicketSystem.  If not, see <http://www.gnu.org/licenses/>.
 */

package love.sola.netsupport.api;


/**
 * @author Sola {@literal <dev@sola.love>}
 */
public class Error {

    public static final Error ALREADY_SUBMITTED = new Error(1);
    public static final Object OK = new Object();
    public static final Error PARAMETER_REQUIRED = new Error(-1);
    public static final Error ILLEGAL_PARAMETER = new Error(-2);
    //	public static final Error REQUEST_FAILED = new Error(-3); REMOVED
    public static final Error LENGTH_LIMIT_EXCEEDED = new Error(-4);
// Path: src/main/java/love/sola/netsupport/config/Lang.java
// public static String lang(String key) {
//     String value = messages.get(key);
//     return value == null ? "!!" + key + "!!" : value;
// }


// Path: src/main/java/love/sola/netsupport/api/Error.java
import static love.sola.netsupport.config.Lang.lang;

/*
 * This file is part of WechatTicketSystem.
 *
 * WechatTicketSystem is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * WechatTicketSystem is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with WechatTicketSystem.  If not, see <http://www.gnu.org/licenses/>.
 */

package love.sola.netsupport.api;


/**
 * @author Sola {@literal <dev@sola.love>}
 */
public class Error {

    public static final Error ALREADY_SUBMITTED = new Error(1);
    public static final Object OK = new Object();
    public static final Error PARAMETER_REQUIRED = new Error(-1);
    public static final Error ILLEGAL_PARAMETER = new Error(-2);
    //	public static final Error REQUEST_FAILED = new Error(-3); REMOVED
    public static final Error LENGTH_LIMIT_EXCEEDED = new Error(-4);
    public static final Error INVALID_PARAMETER = new Error(-5);