blob: 6a97730518fc3f0b02931b6d9881a5ea2e351acf [file] [log] [blame]
/*
*
* Copyright (c) 2013-2017 Nest Labs, Inc.
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.nestlabs.weave.security;
/** General representation of an exception that occurred during an interaction with
* the Weave Security Support library.
*/
public class WeaveSecuritySupportException extends Exception
{
public WeaveSecuritySupportException()
{
this.errorCode = 0;
}
public WeaveSecuritySupportException(int errorCode, String message)
{
super(message != null ? message : String.format("Error Code %d", errorCode));
this.errorCode = errorCode;
}
public final int errorCode;
}