Fix major update integrating with external wisemapping frond end
This commit is contained in:
@@ -6,7 +6,7 @@ import org.springframework.context.MessageSource;
|
||||
import java.util.Locale;
|
||||
|
||||
abstract public class ClientException extends WiseMappingException {
|
||||
private Severity severity;
|
||||
private final Severity severity;
|
||||
|
||||
public ClientException(@NotNull String message, @NotNull Severity severity) {
|
||||
super(message);
|
||||
|
@@ -18,11 +18,23 @@
|
||||
|
||||
package com.wisemapping.exceptions;
|
||||
|
||||
import com.wisemapping.service.InvalidUserEmailException;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class EmailNotExistsException
|
||||
extends Exception
|
||||
extends ClientException
|
||||
{
|
||||
public EmailNotExistsException(Exception e)
|
||||
|
||||
private static final String MSG_KEY = "RESET_PASSWORD_INVALID_EMAIL";
|
||||
|
||||
public EmailNotExistsException(@NotNull InvalidUserEmailException e)
|
||||
{
|
||||
super(e);
|
||||
super(e.getMessage(),Severity.INFO);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
protected String getMsgBundleKey() {
|
||||
return MSG_KEY;
|
||||
}
|
||||
}
|
||||
|
@@ -1,23 +0,0 @@
|
||||
/*
|
||||
* Copyright [2015] [wisemapping]
|
||||
*
|
||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||
* "powered by wisemapping" text requirement on every single page;
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the license at
|
||||
*
|
||||
* http://www.wisemapping.org/license
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.wisemapping.exceptions;
|
||||
|
||||
public class GoogleChromeFrameRequiredException extends Exception {
|
||||
|
||||
}
|
@@ -18,7 +18,8 @@
|
||||
|
||||
package com.wisemapping.exceptions;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
public class MapCouldNotFoundException
|
||||
extends ClientException
|
||||
|
@@ -24,7 +24,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
public class SessionExpiredException
|
||||
extends ClientException {
|
||||
private static final String MSG_KEY = "MINDMAP_TIMESTAMP_OUTDATED";
|
||||
private User lastUpdater;
|
||||
private final User lastUpdater;
|
||||
|
||||
public SessionExpiredException(@NotNull String debugInfo, @NotNull User lastUpdater) {
|
||||
super(debugInfo, Severity.FATAL);
|
||||
|
@@ -1,23 +0,0 @@
|
||||
/*
|
||||
* Copyright [2015] [wisemapping]
|
||||
*
|
||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||
* "powered by wisemapping" text requirement on every single page;
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the license at
|
||||
*
|
||||
* http://www.wisemapping.org/license
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.wisemapping.exceptions;
|
||||
|
||||
public class UnsupportedBrowserException extends Exception {
|
||||
|
||||
}
|
Reference in New Issue
Block a user