public class PlayerError extends Event
Modifier and Type | Field and Description |
---|---|
static String |
ERROR_ALREADY_PLAYING |
static String |
ERROR_ILLEGAL |
static String |
ERROR_NOT_ABLE |
static String |
ID |
Modifier | Constructor and Description |
---|---|
protected |
PlayerError(Identification source)
Creates a new Event Object
|
Modifier and Type | Method and Description |
---|---|
static Optional<PlayerError> |
createMusicPlayerError(Identification source,
String error)
creates a new MusicPlayerError
|
addDescriptor, addEventLifeCycleListener, addResource, addResources, containsDescriptor, createEvent, createEvent, getAllInformations, getDescriptors, getEventBehaviourController, getID, getListResourceContainer, getSource, getType, lifecycleCallback, replaceDescriptors, setDescriptors, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isOwner
public static final String ID
public static final String ERROR_ALREADY_PLAYING
public static final String ERROR_NOT_ABLE
public static final String ERROR_ILLEGAL
protected PlayerError(Identification source) throws IllegalArgumentException
source
- the source of the Event, most likely a this reference.IllegalArgumentException
- if one of the Arguments is null or emptypublic static Optional<PlayerError> createMusicPlayerError(Identification source, String error)
source
- the sourceerror
- the error (not null and not empty)Copyright © 2016. All rights reserved.