Class NoSuitableTypeIOException

java.lang.Object
java.lang.Throwable
java.lang.Exception
nz.org.riskscape.engine.io.NoSuitableTypeIOException
All Implemented Interfaces:
Serializable

public class NoSuitableTypeIOException extends Exception

Throws by TypeIOBuilders when a TypeIO object couldn't be constructed - typically because there is no support for reading/writing a particular type.

TypeIO constructing code will need to explicitly handle these exceptions (hence the checked exception) and present the user with an error message to say why they can't do what they want to do. It is intentional that this is not using ResultOrProblems so that construction code can be kept simple and because it's expected that 99% of attempts to build a TypeIO object will succeed (because implementations should exist).

See Also:
  • Constructor Details

    • NoSuitableTypeIOException

      public NoSuitableTypeIOException(Type withoutIO)