util

Clone or download

Title and Message of every exception is null

Modified Files

/*
/*
Stream-Pi - Free & Open-Source Modular Cross-Platform Programmable Macro Pad
Stream-Pi - Free & Open-Source Modular Cross-Platform Programmable Macro Pad
Copyright (C) 2019-2021 Debayan Sutradhar (rnayabed), Samuel Quiñones (SamuelQuinones)
Copyright (C) 2019-2021 Debayan Sutradhar (rnayabed), Samuel Quiñones (SamuelQuinones)
This program is free software: you can redistribute it and/or modify
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
(at your option) any later version.
This program is distributed in the hope that it will be useful,
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
GNU General Public License for more details.
Originally Written by : Debayan Sutradhar (rnayabed)
Originally Written by : Debayan Sutradhar (rnayabed)
*/
*/
package com.stream_pi.util.exception;
package com.stream_pi.util.exception;
public class StreamPiException extends Exception {
public class StreamPiException extends Exception {
private String title;
private String title = null;
private String message;
private String message = null;
public StreamPiException(String message)
public StreamPiException(String message)
{
{
super(message);
super(message);
this.title = "";
this.title = "";
this.message = message;
this.message = message;
}
}
public StreamPiException(String title, String message)
public StreamPiException(String title, String message)
{
{
super(message);
super(message);
this.title = title;
this.title = title;
this.message = message;
this.message = message;
}
}
public String getShortMessage()
public String getShortMessage()
{
{
return message;
return message;
}
}
public String getTitle()
public String getTitle()
{
{
return title;
return title;
}
}
public void setTitle(String title)
public void setTitle(String title)
{
{
this.title = title;
this.title = title;
}
}
public void setShortMessage(String message)
public void setShortMessage(String message)
{
{
this.message = message;
this.message = message;
}
}
}
}