---
schema_version: "1"
id: 0487f8f361569e78bed0f8c9fdf421cd8e42f2a16eee0b36f441943d7c00138f
title: ResolutionException Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_CommerceExtension_ResolutionException.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_CommerceExtension_ResolutionException.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 0c359b35eeba53c464bdd98a8b319d1e4851f6488410b473481f040e73e8a9aa
description: "Exception indicating a problem with the execution of a resolution strategy. Constructor that takes two arguments: an error message and an exception.Constructor that takes an exception as an argument,Constructor that takes an error message as an argument.Default constructor for the ResolutionException class.Returns the type of the exception."
---
# ResolutionException Class

Exception indicating a problem with the execution of a resolution strategy.

## Namespace

[CommerceExtension](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_CommerceExtension.htm "Use the CommerceExtension namespace to define resolution strategies for registered Commerce extensions.")

- **[ResolutionException Constructors](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_CommerceExtension_ResolutionException.htm#apex_CommerceExtension_ResolutionException_constructors)**
- **[ResolutionException Methods](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_CommerceExtension_ResolutionException.htm#apex_CommerceExtension_ResolutionException_methods)**

## ResolutionException Constructors

The following are constructors for ResolutionException.

- **[ResolutionException(errorMessage, exception)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_CommerceExtension_ResolutionException.htm#apex_CommerceExtension_ResolutionException_ctor)**  
    Constructor that takes two arguments: an error message and an exception.
- **[ResolutionException(exception)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_CommerceExtension_ResolutionException.htm#apex_CommerceExtension_ResolutionException_ctor_2)**  
    Constructor that takes an exception as an argument,
- **[ResolutionException(errorMessage)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_CommerceExtension_ResolutionException.htm#apex_CommerceExtension_ResolutionException_ctor_3)**  
    Constructor that takes an error message as an argument.
- **[ResolutionException()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_CommerceExtension_ResolutionException.htm#apex_CommerceExtension_ResolutionException_ctor_4)**  
    Default constructor for the ResolutionException class.

### ResolutionException(errorMessage, exception)

Constructor that takes two arguments: an error message and an exception.

#### Signature

public ResolutionException(String errorMessage, Exception exception)

#### Parameters

- **errorMessage**:
    
    Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")
    
    Error message.
- **exception**:
    
    Type: [Exception](https://developer.salesforce.com/docs/atlas.en-us.264.0.apexref.meta/apexref/apex_classes_exception_methods.htm)
    
    Exception.

### ResolutionException(exception)

Constructor that takes an exception as an argument,

#### Signature

public ResolutionException(Exception exception)

#### Parameters

- **exception**:
    
    Type: [Exception](https://developer.salesforce.com/docs/atlas.en-us.264.0.apexref.meta/apexref/apex_classes_exception_methods.htm)
    
    Exception.

### ResolutionException(errorMessage)

Constructor that takes an error message as an argument.

#### Signature

public ResolutionException(String errorMessage)

#### Parameters

- **errorMessage**:
    
    Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")
    
    Error message.

### ResolutionException()

Default constructor for the ResolutionException class.

#### Signature

public ResolutionException()

## ResolutionException Methods

The following are methods for the ResolutionException class.

- **[getTypeName()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_CommerceExtension_ResolutionException.htm#apex_CommerceExtension_ResolutionException_getTypeName)**  
    Returns the type of the exception.

### getTypeName()

Returns the type of the exception.

#### Signature

public String getTypeName()

#### Return Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

The type of the Exception.