Skip to content

Commit

Permalink
Move ConfigurationException in its own class.
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernard31 committed Jul 2, 2019
1 parent 39813b8 commit 27c449b
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,16 +238,4 @@ protected static BootstrapConfig.ServerSecurity getSecurityEntry(BootstrapConfig
}
return null;
}

/**
* Exception raised when {@link BootstrapConfig} is invalid.
*/
public static class ConfigurationException extends Exception {

private static final long serialVersionUID = 1L;

public ConfigurationException(String message) {
super(message);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/*******************************************************************************
* Copyright (c) 2019 Sierra Wireless and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Distribution License v1.0 which accompany this distribution.
*
* The Eclipse Public License is available at
* http://www.eclipse.org/legal/epl-v10.html
* and the Eclipse Distribution License is available at
* http://www.eclipse.org/org/documents/edl-v10.html.
*
* Contributors:
* Sierra Wireless - initial API and implementation
*******************************************************************************/
package org.eclipse.leshan.server.bootstrap;

/**
* Exception raised when {@link BootstrapConfig} is invalid.
*/
public class ConfigurationException extends Exception {

private static final long serialVersionUID = 1L;

public ConfigurationException() {
}

public ConfigurationException(String m) {
super(m);
}

public ConfigurationException(String m, Object... args) {
super(String.format(m, args));
}

public ConfigurationException(Throwable e) {
super(e);
}

public ConfigurationException(String m, Throwable e) {
super(m, e);
}

public ConfigurationException(Throwable e, String m, Object... args) {
super(String.format(m, args), e);
}
}

0 comments on commit 27c449b

Please sign in to comment.