org.bs.mdi
Class FileIOException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.bs.mdi.FileIOException
- All Implemented Interfaces:
- Serializable
- public class FileIOException
- extends Exception
FileIOExceptions can happen during loading, saving or exporting files.
- See Also:
- Serialized Form
ERR_UNSUPPORTEDFORMAT
public static final int ERR_UNSUPPORTEDFORMAT
- See Also:
- Constant Field Values
ERR_NOACCESS
public static final int ERR_NOACCESS
- See Also:
- Constant Field Values
ERR_NOSUCHFILE
public static final int ERR_NOSUCHFILE
- See Also:
- Constant Field Values
ERR_UNKNOWN
public static final int ERR_UNKNOWN
- See Also:
- Constant Field Values
FileIOException
public FileIOException(int reason,
String filename)
- Creates a new FileException.
- Parameters:
reason - the reason for the failurefilename - the filename which was attempted to be loaded, saved or exported
getFilename
public String getFilename()
- Returns the filename which this exception concerns.
- Returns:
- the filename
getReason
public int getReason()
- Returns the reason why this exception was thrown.
- Returns:
- the reason
getLocalizedMessage
public String getLocalizedMessage()
- Returns a localized error message.
- Returns:
- the localized error message