add method getType to PageException to make them ACF compatible on Java Level