public class ExportException
extends java.lang.Exception
This class is used for exceptions that can occur during a file export process.
| Modifier and Type | Field and Description |
|---|---|
private int |
channel |
private boolean |
composed
false: simple string messge; true: complex message containing string, tick, channel, note
|
private java.lang.String |
msg |
private int |
note |
private static long |
serialVersionUID |
private java.lang.Long |
tick |
| Constructor and Description |
|---|
ExportException(java.lang.Long tick,
int channel,
int note,
java.lang.String msg)
Creator of a composed error message containing details like tickstamp, channel, note number etc.
|
ExportException(java.lang.String msg)
Creator of a simple export exception, containing only a simple string.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getErrorMessage()
Returns the final error message.
|
private static final long serialVersionUID
private boolean composed
false: simple string messge; true: complex message containing string, tick, channel, note
private java.lang.Long tick
private int channel
private int note
private java.lang.String msg
public ExportException(java.lang.String msg)
Creator of a simple export exception, containing only a simple string. This is used for IO errors regarding the export file or MIDI exports.
msg - Error messagepublic ExportException(java.lang.Long tick,
int channel,
int note,
java.lang.String msg)
Creator of a composed error message containing details like tickstamp, channel, note number etc. This is used in the MidicaPLExporter class when an event has occured that cannot be handled properly.
tick - Tickstamp of the event that caused the exception.channel - Channel where the event occured – or -1 if it wasn’t a channel based event.note - Note number of the event – or -1 if no note was involved.msg - Error message