package net.fortytwo.smsn.p2p;

import org.json.JSONObject;

public interface MessageHandler {
    void handle(JSONObject message) throws MessageHandlerException;

    class MessageHandlerException extends Exception {
        public MessageHandlerException(final String message) {
            super(message);
        }

        public MessageHandlerException(final Throwable cause) {
            super(cause);
        }
    }
}
