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

at.yawk.dbus.protocol.auth.command.Error Maven / Gradle / Ivy

The newest version!
/*
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at https://mozilla.org/MPL/2.0/.
 */

package at.yawk.dbus.protocol.auth.command;

import java.util.List;
import lombok.EqualsAndHashCode;
import lombok.Value;

/**
 * @author yawkat
 */
@Value
@EqualsAndHashCode(callSuper = true)
public class Error extends Command {
    public static final String NAME = "ERROR";
    private final String message;

    public Error(String message) {
        super(null, NAME, message);
        this.message = message;
    }

    public static Error parse(List args) {
        return new Error(String.join(" ", args));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy