blob: dfea7aaeec6839c3b47545c7d9608ad43880773b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.fourisland.fourpuzzle.transition;
/**
*
* @author hatkirby
*/
public class TransitionUnsupportedException extends RuntimeException {
private String className;
private TransitionDirection direction;
public TransitionUnsupportedException(String className, TransitionDirection direction)
{
this.className = className;
this.direction = direction;
}
@Override
public String getMessage()
{
return "Transition \"" + className + "\" does not support the " + direction.toString() + " direction";
}
}
|