package com.jscape.inet.scp.protocol.messages;

import static com.jscape.util.Parameters.assertNotNull;

/**
 * Error message.
 *
 * @author Alex Usun
 */
public class WarningMessage
        extends Message {

    public final String message;

    /**
     * Creates a new message instance.
     *
     * @param message error message
     */
    public WarningMessage(String message) {
        assertNotNull(message);
        this.message = message;
    }

    @Override
    public String toString() {
        return "WarningMessage {"
                + "message='" + this.message + '\''
                + '}';
    }

}
