summaryrefslogtreecommitdiff
path: root/src/main/java/com/benburwell/planes/sbs/UnrecognizedMessageTypeException.java
blob: 63d3d6327f40e2955afceda8facf62f22cb9e60b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.benburwell.planes.sbs;

/**
 * @author ben
 */
public class UnrecognizedMessageTypeException extends Exception {
    private String type;

    public UnrecognizedMessageTypeException(String type) {
        this.type = type;
    }

    public String getType() {
        return this.type;
    }

    public String getMessage() {
        return "Unrecognized message type: " + this.getType();
    }
}