SearchException

Version 1.9 - Updated on 02/14/2017

Contents

Introduction

public class SearchException extends ThingSpaceException

Generic exception class for all exceptions thrown from inside Search api call.

SearchException

public SearchException(final Exception exception)

Constructor using a root cause exception.

  • Parameters: exception — The root cause of this exception

SearchException

public SearchException(final ErrorCode code)

Create a new exception defined by the provided code.

  • Parameters: code — An integer defining this exception.

SearchException

public SearchException(final ErrorCode code, final String message)

Create a new exception defined by the provided code.

  • Parameters:
    • code — An integer defining this exception.
    • message — Exception description

getMessage

@Override public String getMessage()

Gets an error message.

  • Returns: An error message

Copyright © 2015-2017, Verizon and/or its Licensors. All rights reserved.